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

bug with ionic cordova emulate android

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • cordova@7.0.0
    • None
    • cordova-android
    • None

    Description

      when I run ionic cordova emulate android I get this message :

      " Running app-scripts build: --platform android --target cordova
      [13:56:09] build dev started ...
      [13:56:09] clean started ...
      [13:56:09] clean finished in 3 ms
      [13:56:09] copy started ...
      [13:56:09] deeplinks started ...
      [13:56:09] deeplinks finished in 22 ms
      [13:56:09] transpile started ...
      [13:56:12] transpile finished in 2.54 s
      [13:56:12] preprocess started ...
      [13:56:12] preprocess finished in less than 1 ms
      [13:56:12] webpack started ...
      [13:56:12] copy finished in 2.70 s
      [13:56:19] webpack finished in 7.69 s
      [13:56:19] sass started ...
      [13:56:20] sass finished in 1.03 s
      [13:56:20] postprocess started ...
      [13:56:20] postprocess finished in 7 ms
      [13:56:20] lint started ...
      [13:56:20] build dev finished in 11.44 s
      > cordova emulate android
      ANDROID_HOME=/Users/gillesgodefroid/Library/Android/sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
      Subproject Path: CordovaLib
      NDK is missing a "platforms" directory.

      If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/gillesgodefroid/Library/Android/sdk/ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

      The Task.leftShift(Closure) method has been deprecated and is scheduled to be removed in Gradle 5.0. Please use Task.doLast(Action) instead.

      at build_8kqdndo9vqvve12axgld7tbu6.run(/Users/gillesgodefroid/Documents/Ionic2Do/platforms/android/build.gradle:141)

      [13:56:23] lint finished in 2.69 s
      NDK is missing a "platforms" directory.

      If you are using NDK, verify the ndk.dir is set to a valid NDK directory. It is currently set to /Users/gillesgodefroid/Library/Android/sdk/ndk-bundle.
      If you are not using NDK, unset the NDK variable from ANDROID_NDK_HOME or local.properties to remove this warning.

      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:javaPreCompileDebug

      :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:transformNativeLibsWithMergeJniLibsForDebug

      UP-TO-DATE
      :CordovaLib:transformNativeLibsWithSyncJniLibsForDebug

      UP-TO-DATE
      :CordovaLib:bundleDebug

      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
      :javaPreCompileDebug

      :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
      :transformNativeLibsWithMergeJniLibsForDebug
      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: 1.482 secs
      Built the following apk(s):
      /Users/gillesgodefroid/Documents/Ionic2Do/platforms/android/build/outputs/apk/android-debug.apk

      ANDROID_HOME=/Users/gillesgodefroid/Library/Android/sdk
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_91.jdk/Contents/Home
      Error: Cannot read property 'replace' of undefined

      [ERROR] An error occurred while running cordova emulate android (exit code 1)."

      The cordova requirements are :

      "> cordova requirements

      Requirements check results for android:

      Java JDK: installed 1.8.0
      Android SDK: installed true
      Android target: installed android-26,android-25,android-24,android-23

      Gradle: installed /Applications/Android Studio.app/Contents/gradle/gradle-3.2/bin/gradle

      Requirements check results for ios:
      Apple macOS: installed darwin
      Xcode: installed [object Object]

      ios-deploy: installed [object Object]
      CocoaPods: installed [object Object]"

      Attachments

        Issue Links

          Activity

            People

              bowserj Joey Robert Bowser
              godefroid gilles Godefroid
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: