Native reaktiv: target mit der Hash-Zeichenfolge 'android-X' nicht gefunden

Ich versuche mich zu entwickeln, meine erste reagieren-native Android app. Wenn ich

sudo react-native run-android

Bekomme ich die folgende Fehlermeldung

JS server already running.
Building and installing the app on the device (cd android && ./gradlew installDebug)...

FAILURE: Build failed with an exception.

* What went wrong:
A problem occurred configuring project ':app'.
> failed to find target with hash string 'android-23' in: /usr/local/Cellar/android-sdk

* 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: 4.981 secs
Could not install the app on the device, see the error above.

Habe ich 24.3.3 unter /usr/local/Cellar/android-sdk mit allen API-23 Pakete installiert

Native reaktiv: target mit der Hash-Zeichenfolge 'android-X' nicht gefunden

Meine android/app/build.gradle sagt

compileSdkVersion 23
buildToolsVersion "23.0.0"

defaultConfig {
    applicationId "com.awesomeandroid"
    minSdkVersion 16
    targetSdkVersion 23
    versionCode 1
    versionName "1.0"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

Wenn ich versuche $ANDROID_HOME sagt es -bash: /usr/local/Cellar/android-sdk/24.3.3: is a directory.

Außerdem habe ich local.properties unter android/app/ und Hinzugefügt sdk.dir=/usr/local/Cellar/android-sdk/24.3.3

Bin ich etwas fehlt?

InformationsquelleAutor der Frage Jaseem Abbas | 2015-09-23

Schreibe einen Kommentar