Saturday, June 18, 2016

Nativescript {N} - build-tools/22.0.1/aapt failed with Nativescript android


If you get the following:

Error:Execution failed for task ':processNativescript-barcodescannerNativescript-telerik-uiDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Users/.../Library/Android/sdk/build-tools/22.0.1/aapt'' finished with non-zero exit value 2


Go to your build.gradle for your app and change from:

def computeBuildToolsVersion() {
   if(project.hasProperty("buildToolsVersion")) {
      return buildToolsVersion
   }
   else {
      return "22.0.1"   }
}

to

def computeBuildToolsVersion() {
   if(project.hasProperty("buildToolsVersion")) {
      return buildToolsVersion
   }
   else {
      return "23.0.1"   }
}

 You must install SDK buikd tool for 23.0.1 to get it work. NativeScrupt has a bug that does not work with SDK 22.0.1.

No comments:

Post a Comment