2017-05-29 2 views
0

Ich installiere reagieren native und erstellt ein Beispielprojekt. aber es kann nicht auf Android-Version vor Android 6. ausgeführt werden, so habe ich ein Projekt mit einer früheren Version erstellt. Folgende Fehler sind aufgetreten. bitte hilfe.Was ist die React Native-Version kompatibel mit Android api16?

Dies ist mein Installationsabschnitt.

C:\react>npm i -g rninit 
C:\Users\User\AppData\Roaming\npm\rninit -> C:\Users\User\AppData\Roaming\npm 
de_modules\rninit\index.js 
C:\Users\User\AppData\Roaming\npm 
`-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | | `-- [email protected] 
    | +-- [email protected] 
    | `-- [email protected] 
    +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | | `-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | | +-- [email protected] 
    | | +-- [email protected] 
    | | +-- [email protected] 
    | | +-- [email protected] 
    | | | `-- [email protected] 
    | | +-- [email protected] 
    | | `-- [email protected] 
    | | `-- [email protected] 
    | |  +-- [email protected] 
    | |  +-- [email protected] 
    | |  | `-- [email protected] 
    | |  +-- [email protected] 
    | |  +-- [email protected] 
    | |  | `-- [email protected] 
    | |  | +-- [email protected] 
    | |  | `-- [email protected] 
    | |  +-- [email protected] 
    | |  `-- [email protected] 
    | `-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | +-- [email protected] 
    | `-- [email protected] 
    `-- [email protected] 

Dies ist Projektinitialisierung

C:\react>rninit init TestProject --source [email protected] 
    This will walk you through creating a new React Native project in C:\react\TestP 
    roject 
    Installing react-native package from npm... 

    npm ERR! Windows_NT 6.3.9600 
    npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\User\\AppData\\R 
    oaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-nativ 
    [email protected]" 
    npm ERR! node v6.10.3 
    npm ERR! npm v4.1.1 
    npm ERR! code ETARGET 

    npm ERR! notarget No compatible version found: [email protected] 
    npm ERR! notarget Valid install targets: 
    npm ERR! notarget 0.0.0, 0.0.5, 0.0.6, 0.1.0, 0.2.0, 0.2.1, 0.3.0, 0.3.1, 0.3.2, 
    0.3.3, 0.3.4, 0.3.5, 0.3.6, 0.3.7, 0.3.8, 0.3.9, 0.3.10, 0.3.11, 0.4.0, 0.4.1, 
    0.4.2, 0.4.3, 0.4.4, 0.5.0-rc1, 0.5.0, 0.6.0-rc, 0.6.0, 0.7.0-rc, 0.7.0-rc.2, 0. 
    7.1, 0.8.0-rc, 0.8.0-rc.2, 0.8.0, 0.9.0-rc, 0.9.0, 0.10.0-rc, 0.10.0, 0.11.0-rc, 
    0.10.1, 0.11.0, 0.11.1, 0.11.2, 0.12.0-rc, 0.11.3, 0.11.4, 0.12.0, 0.13.0-rc, 0 
    .13.0, 0.13.1, 0.13.2, 0.14.0-rc, 0.14.0, 0.14.1, 0.15.0-rc, 0.14.2, 0.15.0, 0.1 
    6.0-rc, 0.16.0, 0.17.0-rc, 0.17.0, 0.18.0-rc, 0.18.0, 0.18.1, 0.19.0-rc, 0.19.0, 
    0.20.0-rc1, 0.20.0, 0.21.0-rc, 0.21.0, 0.22.0-rc, 0.22.0-rc3, 0.22.0-rc4, 0.22. 
    0-rc5, 0.22.0, 0.22.1, 0.22.2, 0.23.0-rc1, 0.23.0-rc3, 0.23.0-rc4, 0.24.0-rc, 0. 
    24.0-rc1, 0.23.0, 0.24.0-rc2, 0.24.0-rc3, 0.23.1, 0.24.0-rc4, 0.24.0-rc5, 0.25.0 
    -rc, 0.24.0, 0.24.1, 0.26.0-rc, 0.25.1, 0.26.0, 0.27.0-rc, 0.26.1, 0.26.2, 0.27. 
    0-rc1, 0.27.0-rc2, 0.26.3, 0.27.0-rc3, 0.27.0, 0.28.0-rc.0, 0.27.1, 0.27.2, 0.28 
    .0, 0.29.0-rc.0, 0.29.0-rc.1, 0.29.0-rc.2, 0.29.0-rc.3, 0.30.0-rc.0, 0.29.0, 0.2 
    9.1, 0.29.2, 0.30.0, 0.31.0-rc.0, 0.31.0-rc.1, 0.31.0, 0.32.0-rc.0, 0.33.0-rc.0, 
    0.32.0, 0.33.0-rc.1, 0.32.1, 0.33.0, 0.34.0-rc.0, 0.33.1, 0.34.0, 0.35.0-rc.0, 
    0.34.1, 0.36.0-rc.0, 0.35.0, 0.36.0-rc.1, 0.36.0, 0.37.0-rc.0, 0.36.1, 0.37.0-rc 
    .2, 0.37.0-rc.3, 0.37.0-rc.4, 0.37.0, 0.38.0-rc.0, 0.38.0-rc.1, 0.39.0-rc.0, 0.3 
    8.0, 0.39.0, 0.40.0-rc.0, 0.38.1, 0.40.0-rc.1, 0.39.1, 0.40.0-rc.2, 0.39.2, 0.40 
    .0, 0.41.0-rc.0, 0.41.0-rc.1, 0.42.0-rc.0, 0.41.0, 0.42.0-rc.1, 0.41.1, 0.41.2, 
    0.42.0-rc.2, 0.42.0-rc.3, 0.42.0, 0.43.0-rc.0, 0.43.0-rc.1, 0.43.0-rc.2, 0.42.2, 
    0.43.0-rc.3, 0.42.3, 0.43.0-rc.4, 0.44.0-rc.0, 0.43.0, 0.43.1, 0.43.2, 0.43.3, 
    0.43.4, 0.44.0, 0.45.0-rc.0, 0.45.0-rc.1, 0.44.1, 0.44.2, 0.45.0-rc.2 
    npm ERR! notarget 
    npm ERR! notarget This is most likely not a problem with npm itself. 
    npm ERR! notarget In most cases you or one of your dependencies are requesting 
    npm ERR! notarget a package version that doesn't exist. 

    npm ERR! Please include the following file with any support request: 
    npm ERR!  C:\react\TestProject\npm-debug.log 

    `npm install --save [email protected]` failed 

was sind die Versionen, die s.Thank Sie

Antwort

1

Mindest SDK für Android für jedes Android-API kompatibel sind, ist 4,1 (API 16) und für iOS > = iOS 7.0. Hier

ist das offizielle Dokument link

+0

, welche Version von reagieren nativen i installieren sollte einen Android-App zu machen, das hier API 16 –

+0

laufen kann, ist die Version verwende ich 'reagieren-native-cli: 2.0.1 react-native: 0.44.2' Sie können dies versuchen –

+0

Hier https://facebook.github.io/react-native/docs/getting-started.html es heißt 3. Installieren Sie das Android 6.0 (Marshmallow) SDK Android Studio installiert standardmäßig das neueste Android SDK. Natives Reagieren benötigt jedoch das Android 6.0 (Marshmallow) SDK. Können wir nicht App-Build von Marshmallow in niedrigeren API-Ebenen ausführen. Ich meine, wenn wir eine App mit der aktuellen Version erstellen können wir es auf Jellybean ausführen? –

Verwandte Themen