Ionic error java.lang.IllegalStateException:未指定buildToolsVersion

时间:2017-05-22 17:29:23

标签: ionic2 android-sdk-tools

我试图从github运行离子2中的应用程序,但在运行之后:

sudo ionic run android

我得到了:

    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

我已经尝试了帖子Ionic Android build: java.lang.IllegalStateException: buildToolsVersion is not specified,但没有运气。我还试图再次添加/添加平台,我确定android-sdk链接正确(版本25.2.3)。

0 个答案:

没有答案