Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13571

'semver' property not found block the emulator

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • Master, 6.3.0
    • None
    • cordova-android
    • Important

    Description

      When run my application with android emulator, the error

      Error: Cannot read property 'semver' of null

      exit the process.

      You can see here the log trace :
      $ cordova run android --emulator -d

      ....
      BUILD SUCCESSFUL
      
      Total time: 1.014 secs
      Command finished with error code 0: /Users/vincentherl/Documents/lire/platforms/android/gradlew cdvBuildDebug,-b,/Users/vincentherl/Documents/lire/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Dorg.gradle.jvmargs=-Xmx2048m,-Pandroid.useDeprecatedNdk=true
      Built the following apk(s): 
      	/Users/vincentherl/Documents/lire/platforms/android/build/outputs/apk/android-debug.apk
      No scripts found for hook "before_deploy".
      ANDROID_HOME=/Users/vincentherl/Library/Android/sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home
      Running command: adb devices
      Command finished with error code 0: adb devices
      Running command: avdmanager list avd
      Command finished with error code 0: avdmanager list,avd
      Error: Cannot read property 'semver' of null
      

      Mabe a way, this line : https://github.com/apache/cordova-android/blob/83601dca2fa468a76bcb2c687b5baebfcb69588b/bin/templates/cordova/lib/emulator.js#L190

      Attachments

        Activity

          People

            bowserj Joey Robert Bowser
            vincentherl Vincent
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: