Error when buildar for android Ionic

Asked

Viewed 200 times

1

I’m getting the following error:

BUILD FAILED in 0s /home/Flavio/helloworld/Platforms/android/gradlew: Command failed with Exit code 1 Error output: FAILURE: Build failed with an Exception.

  • Where: Script '/home/Flavio/helloworld/Platforms/android/Cordovalib/Cordova.Gradle' line: 68

  • What Went Wrong: A problem occurred evaluating project ':Cordovalib'.

    No installed build tools found. Install the Android build tools version 19.1.0 or Higher.

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

  • Get more help at https://help.gradle.org

BUILD FAILED in 0s [ERROR] An error occurred while running subprocess Cordova.

    cordova build android exited with exit code 1.

    Re-running this command with the --verbose flag may provide more 
    information.

I have the android-tools installed, it is necessary to perform some more configuration?

  • The version of Android build tools is correct? 19.1.0 or newer? You executed the command, as the text suggests, in a verbose way to get more information about the problem?

1 answer

0

I already solved this problem by editing the file

..\Platforms android Cordovalib Cordova.Gradle

in the method getAvailableBuildTools() changed the line that creates the file instance.

Of:

def buildToolsDir = new File(getAndroidSdkDir(), "build-tools")

To:

def buildToolsDir = new File("d:\\Acacio\\sdk-tools-windows-4333796\\tools\\build-tools")

Point to your machine’s build-tools

Browser other questions tagged

You are not signed in. Login or sign up in order to post.