Mehditeranee opened a new issue #926: Android emulator does not work
URL: https://github.com/apache/cordova-android/issues/926
 
 
   **Prerequisite**
   
    - Android SDK is well installed (directory : 
/Users/gamecube/Library/Android/sdk)
   
   
   **How to reproduce :** 
   
    1. Run this command : `cordova build android`
    2. Run this command to launch android emulator : `cordova emulate android 
--verbose`
   
   **Expected result**
   
   The emulator is launched.
   
   **Obtained result**
   
   ```
   Command finished with error code 0: 
/Users/gamecube/Desktop/geocars/platforms/android/gradlew 
cdvBuildDebug,-b,/Users/gamecube/Desktop/geocars/platforms/android/build.gradle
   Built the following apk(s): 
        
/Users/gamecube/Desktop/geocars/platforms/android/app/build/outputs/apk/debug/app-debug.apk
   No scripts found for hook "before_deploy".
   Checking Java JDK and Android SDK versions
   ANDROID_SDK_ROOT=undefined (recommended setting)
   ANDROID_HOME=/Users/gamecube/Library/Android/sdk (DEPRECATED)
   Running command: adb devices
   Command finished with error code 0: adb devices
   Could not find either `android` or `avdmanager` on your $PATH! Are you sure 
the Android SDK is installed and available?
   CordovaError: Could not find either `android` or `avdmanager` on your $PATH! 
Are you sure the Android SDK is installed and available?
       at 
/Users/gamecube/Desktop/geocars/platforms/android/cordova/lib/emulator.js:176:35
       at processTicksAndRejections (internal/process/task_queues.js:97:5)
   ```
   
   
   **My questions** 
   
   *Why Android Emulator does not work?* 
   
   and 
   
   *Why is there this error? :* 
   
       CordovaError: Could not find either `android` or `avdmanager` on your 
$PATH! Are you sure the Android SDK is installed and available?
   
   
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to