2017-12-02 4 views
1

누락 반작용이 SDK 및 도구의와은 기본 AIDL 내가, 내가 이미 Node.js를, 자바 8 및 안드로이드 스튜디오 3를 기본 설치 반응과 안돼서

내가 실행에 붙어 내 에뮬레이터 기본 반작용하고 있습니다 :

Execution failed for task ':app:compileDebugAidl'. 
java.lang.IllegalStateException: aidl is missing 

가 이미 Gradle을 버전을 변경, 너무 도구 버전 23 안드로이드 산들 바람 (23)를 다운로드 및 구축을 위해 노력하지만, 내 오류를 수정 아니에요 :

react-native run-android 

다음과 같은 오류를 보여주는 것.

Starting JS server... 
Building and installing the app on the device (cd android && gradlew.bat installDebug)... 
Starting a Gradle Daemon (subsequent builds will be faster) 
The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. 
Incremental java compilation is an incubating feature. 
The TaskInputs.source(Object) method has been deprecated and is scheduled to be removed in Gradle 4.0. Please use TaskInputs.file(Object).skipWhenEmpty() instead. 
:app:preBuild UP-TO-DATE 
:app:preDebugBuild UP-TO-DATE 
:app:checkDebugManifest 
:app:preReleaseBuild UP-TO-DATE 
:app:prepareComAndroidSupportAppcompatV72301Library UP-TO-DATE 
:app:prepareComAndroidSupportSupportV42301Library UP-TO-DATE 
:app:prepareComFacebookFbuiTextlayoutbuilderTextlayoutbuilder100Library UP-TO-DATE 
:app:prepareComFacebookFrescoDrawee130Library UP-TO-DATE 
:app:prepareComFacebookFrescoFbcore130Library UP-TO-DATE 
:app:prepareComFacebookFrescoFresco130Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipeline130Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipelineBase130Library UP-TO-DATE 
:app:prepareComFacebookFrescoImagepipelineOkhttp3130Library UP-TO-DATE 
:app:prepareComFacebookReactReactNative0504Library UP-TO-DATE 
:app:prepareComFacebookSoloaderSoloader010Library UP-TO-DATE 
:app:prepareOrgWebkitAndroidJscR174650Library UP-TO-DATE 
:app:prepareDebugDependencies 
:app:compileDebugAidl FAILED 

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: 46.33 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

// Top-level build file where you can add configuration options common to all sub-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" 
     } 
    } 
} 

distributionBase=GRADLE_USER_HOME 
distributionPath=wrapper/dists 
zipStoreBase=GRADLE_USER_HOME 
zipStorePath=wrapper/dists 
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip 

전체 오류 메시지가 gradle-wrapper.properties? 그것을 고치는 방법? 감사합니다.

답변

0

안드로이드 프로젝트를 열면 안드로이드 스튜디오의 이벤트 로그에서이 오류가 발생합니다.

인스턴트 실행에는 최신 Android Gradle Plugin이 필요합니다. 3.0.1로 업데이트하십시오. 는

그럼, "3.0.1으로 업데이트"를 클릭합니다 (다시 표시하지 않음)하고, 오류가 사라 졌어요. 희망이 도움이됩니다.