PANIC: AVD-Systempfad kann nicht gefunden werden. Bitte definieren Sie ANDROID_SDK_ROOT
Ich versuche, meine erste Ionic-app, aber ich bin immer dieser Fehler, wo es nicht mein Handy suchen und nicht finden, den emulator zu laufen.
C:\Users\MART\Dropbox\Ionic\myapp>ionic run android
Running command: "C:\Program Files\nodejs\node.exe" C:\Users\MART\Dropbox\Ionic\myapp\hooks\after_prepare\010_add_platform_class.js C:\Users\MART\Dropbox\Ionic\myapp
add to body class: platform-android
ANDROID_HOME=C:\Users\MART\Dropbox\Ionic\adt-bundle-windows-x86_64-20140702\sdk
JAVA_HOME=C:\Program Files\Java\1.8.0_20\jdk1.8.0_20
Subproject Path: CordovaLib
Incremental java compilation is an incubating feature.
:preBuild UP-TO-DATE
:preDebugBuild UP-TO-DATE
:checkDebugManifest
:CordovaLib:preBuild UP-TO-DATE
:CordovaLib:preDebugBuild UP-TO-DATE
:CordovaLib:checkDebugManifest
:CordovaLib:prepareDebugDependencies
:CordovaLib:compileDebugAidl UP-TO-DATE
:CordovaLib:compileDebugNdk UP-TO-DATE
:CordovaLib:compileLint UP-TO-DATE
:CordovaLib:copyDebugLint UP-TO-DATE
:CordovaLib:mergeDebugShaders UP-TO-DATE
:CordovaLib:compileDebugShaders UP-TO-DATE
:CordovaLib:generateDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugAssets UP-TO-DATE
:CordovaLib:mergeDebugProguardFiles UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:compileDebugRenderscript UP-TO-DATE
:CordovaLib:generateDebugResValues UP-TO-DATE
:CordovaLib:generateDebugResources UP-TO-DATE
:CordovaLib:packageDebugResources UP-TO-DATE
:CordovaLib:processDebugManifest UP-TO-DATE
:CordovaLib:generateDebugBuildConfig UP-TO-DATE
:CordovaLib:processDebugResources UP-TO-DATE
:CordovaLib:generateDebugSources UP-TO-DATE
:CordovaLib:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:CordovaLib:compileDebugJavaWithJavac UP-TO-DATE
:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:CordovaLib:transformClassesAndResourcesWithSyncLibJarsForDebug UP-TO-DATE
:CordovaLib:mergeDebugJniLibFolders UP-TO-DATE
:CordovaLib:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:CordovaLib:transformNative_libsWithSyncJniLibsForDebug UP-TO-DATE
:CordovaLib:bundleDebug UP-TO-DATE
:prepareAndroidCordovaLibUnspecifiedDebugLibrary UP-TO-DATE
:prepareDebugDependencies
:compileDebugAidl UP-TO-DATE
:compileDebugRenderscript UP-TO-DATE
:generateDebugBuildConfig UP-TO-DATE
:generateDebugResValues UP-TO-DATE
:generateDebugResources UP-TO-DATE
:mergeDebugResources UP-TO-DATE
:processDebugManifest UP-TO-DATE
:processDebugResources UP-TO-DATE
:generateDebugSources UP-TO-DATE
:incrementalDebugJavaCompilationSafeguard UP-TO-DATE
:compileDebugJavaWithJavac UP-TO-DATE
:compileDebugNdk UP-TO-DATE
:compileDebugSources UP-TO-DATE
:mergeDebugShaders UP-TO-DATE
:compileDebugShaders UP-TO-DATE
:generateDebugAssets UP-TO-DATE
:mergeDebugAssets UP-TO-DATE
:transformClassesWithDexForDebug UP-TO-DATE
:mergeDebugJniLibFolders UP-TO-DATE
:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE
:processDebugJavaRes UP-TO-DATE
:transformResourcesWithMergeJavaResForDebug UP-TO-DATE
:validateSigningDebug
:packageDebug UP-TO-DATE
:assembleDebug UP-TO-DATE
:cdvBuildDebug UP-TO-DATE
BUILD SUCCESSFUL
Total time: 4.105 secs
Built the following apk(s):
C:/Users/MART/Dropbox/Ionic/myapp/platforms/android/build/outputs/apk/android-debug.apk
ANDROID_HOME=C:\Users\MART\Dropbox\Ionic\adt-bundle-windows-x86_64-20140702\sdk
JAVA_HOME=C:\Program Files\Java\1.8.0_20\jdk1.8.0_20
No target specified and no devices found, deploying to emulator
No emulator specified, defaulting to Nexus
Waiting for emulator to start...
PANIC: Cannot
find AVD system path. Please define ANDROID_SDK_ROOT
...........................................................................
Habe ich diese installiert ist, auf meinem android-manager
InformationsquelleAutor der Frage learningbyexample | 2016-12-22
Du musst angemeldet sein, um einen Kommentar abzugeben.
Ich habe das gleiche Problem, wenn ich mein ionic-2-app auf windows (ionic run android), und ich es lösen, indem Sie die folgenden Schritte aus, hoffe es wird Euch helfen.
1 - Starten Sie Ihr Android Studio.
2 - Erstellen Sie eine Neues Projekt zu können, erstellen oder löschen von virtuellen Geräten.
3 - Löschen Sie alle virtuellen Geräte, wenn Sie gefunden werden.
4 - und erstellen virtueller Geräte über AVD manager wie unten gezeigt .
InformationsquelleAutor der Antwort user2662006
AVD cant find SDK root, möglicherweise, weil Sie in einem anderen Verzeichnis.Stellen Sie Ihre Umgebungsvariablen, wie gezeigt, im folgenden screenshot zu sehen:
InformationsquelleAutor der Antwort Hitesh Sahu
Zunächst versuchen, diese:
Wenn Sie ein Gerät verwenden. dann stellen Sie lediglich sicher, dass das Gerät gut verbunden.
Überprüfen Sie in den android studio, dass das Gerät online ist. Dieser Fehler erscheint normalerweise, wenn das Gerät offline ist.
Wenn es nicht funktioniert,
https://stackoverflow.com/a/39711435/6747251
InformationsquelleAutor der Antwort reverie_ss
Wenn Sie mit Xamarin, Gehen Sie auf Tools -> Android -> Starten Sie die Adb-server.
InformationsquelleAutor der Antwort Henno Bakker