0

I'm trying to run an app in ionic 2 from github but after running:

sudo ionic run android

I got:

    Failed to notify ProjectEvaluationListener.afterEvaluate(), but primary configuration failure takes precedence.
java.lang.IllegalStateException: buildToolsVersion is not specified.
    at com.google.common.base.Preconditions.checkState(Preconditions.java:173)
    at com.android.build.gradle.BasePlugin.createAndroidTasks(BasePlugin.java:645)...
FAILURE: Build failed with an exception.

* Where:
Script '/Users/andrea/Desktop/voicedetection/ionic-recorder/platforms/android/CordovaLib/cordova.gradle' line: 128

* What went wrong:
A problem occurred evaluating root project 'android'.
> No match found

I already tried the post Ionic Android build: java.lang.IllegalStateException: buildToolsVersion is not specified but with no luck. I also tried to rm/add platform again and I'm sure the android-sdk is linked correctly (version 25.2.3).

2
  • There is no need to use 'sudo' to run ionic commands (run, serve, etc...). Maybe this is your problem. Try to run without it. Commented May 22, 2017 at 19:14
  • Nope unfortunately it's the same without sudo. Commented May 22, 2017 at 23:08

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.