J'essaie de lancer ma première application ionique, mais je reçois cette erreur qui ne trouve pas mon téléphone ni l'émulateur.
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
.................................................. .........................
Je l'ai installé dans mon gestionnaire Android
J'ai le même problème lorsque je lance mon application ionic 2 sous Windows (ionic sous Android), et je le résous en suivant ces étapes, j'espère que cela vous aidera.
1- Lancez votre Android Studio.
2- Créez un Nouveau projet pour pouvoir créer ou supprimer des périphériques virtuels.
3- Supprimez tous les périphériques virtuels, le cas échéant.
4- et créez un périphérique virtuel via le gestionnaire AVD comme indiqué ci-dessous.
J'ai eu cette erreur en essayant de l'exécuter sur un Kindle Fire. Activez ADB sur le Kindle Fire et via votre projet: https://developer.Amazon.com/docs/fire-tablets/connecting-adb-to-device.html#install-the-usb-driver-windows-users
J'ai utilisé le code VS et le terminal intégré exécutant la commande: ionic cordova run Android