ionic-cli icon indicating copy to clipboard operation
ionic-cli copied to clipboard

A problem occurred configuring root project 'android'

Open aweklin opened this issue 10 years ago • 294 comments

Hi,

I have problems building and running ionic2 for android. It's perfectly working well for Windows.

This is the error message I get whenever I try building for android:

FAILURE: Build failed with an exception.

  • What went wrong:

A problem occurred configuring root project 'android'.

failed to find Build Tools revision 24.0.1

  • Try:

    0=13, 1=10 Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

    0=66, 1=85, 2=73, 3=76, 4=68, 5=32, 6=70, 7=65, 8=73, 9=76, 10=69, 11=68, 12=13, 13=10, 14=13, 15=10, 16=84, 17=111, 18=116, 19=97, 20=108, 21=32, 22=116, 23=105, 24=109, 25=101, 26=58, 27=32, 28=50, 29=53, 30=46, 31=51, 32=48, 33=50, 34=32, 35=115, 36=101, 37=99, 38=115, 39=13, 40=10 Error: Error code 1 for command: cmd with args: /s,/c,"C:\Users\user1\Documents\Personal\Dev\Ionic\MyIonic2Project\platforms\android\gradlew cdvBuildDebug -b C:\Users\user1\Documents\Personal\Dev\Ionic\MyIonic2Project\platforms\android\build.gradle -Dorg.gradle.daemon=true -Pandroid.useDeprecatedNdk=true"

Caught exception: undefined

Mind letting us know? https://github.com/driftyco/ionic-cli/issues

Meanwhile, I have installed android SDK platform + Android SDK Platform & build tools.

How do I solve this problem?

aweklin avatar Aug 03 '16 13:08 aweklin

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Greetings @aweklin!

My sensors indicate a reply was requested, but as we have not received one yet, I am using my robot powers to close this issue. However, if you are still experiencing this issue, please feel free to reopen it by creating a new issue, and include any examples or necessary information.

Thank you for allowing me to assist you.

Ionitron avatar Sep 08 '16 18:09 Ionitron

Alright buddy, time to return to the station for repairs @Ionitron

mlynch avatar Sep 08 '16 18:09 mlynch

I have the same problem!


Your system information:

Cordova CLI: 6.4.0 
Ionic CLI Version: 2.1.13
Ionic App Lib Version: 2.1.7
ios-deploy version: 1.9.0 
ios-sim version: 5.0.12 
OS: macOS Sierra
Node Version: v4.2.6
Xcode version: Xcode 8.1 Build version 8B62

Error: /Users/lucas/Documents/projects/BrasilTrack/Btx-app/platforms/android/gradlew: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring root project 'android'.
> You have not accepted the license agreements of the following SDK components:
  [Android SDK Platform 24].
  Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
  Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

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

I already updated Android SDK and reinstalled SDK Build-Tools using sdk manger, but did not works for me.

lucasmendonca avatar Nov 30 '16 12:11 lucasmendonca