API23:任务':app:compileDebugAidl'的执行失败。 > java.lang.IllegalStateException:缺少aidl

时间:2017-04-11 09:52:59

标签: android

谢谢你的到来。今天就在MacOS上使用了ReactNative开发环境。当执行run-android时,一直是个错误:

  

任务执行失败':app:compileDebugAidl'。   java.lang.IllegalStateException:缺少aidl

我真的不知道哪里出错了。 这是我的SDKManager配置SDK Platforms configuration SDK Tools Configuration 这是我不寻常的截图:

FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:compileDebugAidl'.
> java.lang.IllegalStateException: aidl is missing
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED
Total time: 9.128 secs

Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

build.gradle文件

projects/modules.
buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.2.3'
        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}

allprojects {
    repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
    }
}

0 个答案:

没有答案