kar*_*nev 3 android nativescript
\xe2\x9c\x94 Your ANDROID_HOME environment variable is set and points to correct directory.\n\xe2\x9c\x94 Your adb from the Android SDK is correctly installed.\n\xe2\x9c\x94 The Android SDK is installed.\n\xe2\x9c\x94 A compatible Android SDK for compilation is found.\n\xe2\x9c\x94 Javac is installed and is configured properly.\n\xe2\x9c\x94 The Java Development Kit (JDK) is installed and is configured properly.\n\xe2\x9c\x94 Getting NativeScript components versions information...\n\xe2\x9c\x94 Component nativescript has 8.1.4 version and is up to date.\n\xe2\x9c\x94 Component @nativescript/core has 8.1.5 version and is up to date.\n\xe2\x9c\x96 Component @nativescript/android is not installed.\nRun Code Online (Sandbox Code Playgroud)\n正如你在最后一行看到的,我的 @nativescript/android 没有安装。\n我做了好几次安装。
\n还有当我
\nns run android\nRun Code Online (Sandbox Code Playgroud)\n我有这个
\nCould not determine the dependencies of task ':app:compileDebugJavaWithJavac'.\nInstalled Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.\n\nUnable to apply changes on device: emulator-5554. Error is: Command ./gradlew failed with exit code 1.\nRun Code Online (Sandbox Code Playgroud)\n
首先,@nativescript/android 需要位于 devDependencies 中:
使用它从依赖项中删除:
npm r @nativescript/android
Run Code Online (Sandbox Code Playgroud)
然后将其添加到 devDependency 中:
npm i -D @nativescript/android
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
806 次 |
| 最近记录: |