Android Studio: New Gradle Build Ndk Sample App Error
I build sample project MoreTeapots from https://github.com/googlesamples/android-ndk and get errors Information:Gradle tasks [:app:assembleAllDebug] :app:copyArm64-v8aDebugAllM
Solution 1:
Try this
tasks.withType(JavaCompile) {
sourceCompatibility = JavaVersion.VERSION_1_7
targetCompatibility = JavaVersion.VERSION_1_7
}
Bug is submitted here https://code.google.com/p/android/issues/detail?id=179660
edit: append it to end of app build.gradle file outside all of sections
Solution 2:
Alternatively, the two lines can be added immediately following the 'apply plugin: ...'
apply plugin: 'com.android.model.application'
sourceCompatibility = JavaVersion.VERSION_1_7targetCompatibility= JavaVersion.VERSION_1_7
Post a Comment for "Android Studio: New Gradle Build Ndk Sample App Error"