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

Error: Could not find apk architecture: arm build-type: release

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.1.0
    • Component/s: cordova-cli
    • Labels:
      None
    • Environment:

      Cordova Android 4.0.2
      Cordova version: 5.1.1
      Node version: v0.12.2
      MAC OS X 10.9.5
      JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk/Contents/Home

      Description

      When I run :

      cordova run android --release

      apk build successfully, but running fail on device.

      Error message :

      /PROJECT/platforms/android/cordova/node_modules/q/q.js:126
                          throw e;
                                ^
      Error: Could not find apk architecture: arm build-type: release
          at Object.module.exports.findBestApkForArchitecture (/PROJECT/platforms/android/cordova/lib/build.js:624:11)
          at /PROJECT/platforms/android/cordova/lib/device.js:97:30
          at _fulfilled (/PROJECT/platforms/android/cordova/node_modules/q/q.js:798:54)
          at self.promiseDispatch.done (/PROJECT/platforms/android/cordova/node_modules/q/q.js:827:30)
          at Promise.promise.promiseDispatch (/PROJECT/platforms/android/cordova/node_modules/q/q.js:760:13)
          at /PROJECT/platforms/android/cordova/node_modules/q/q.js:526:49
          at flush (/PROJECT/platforms/android/cordova/node_modules/q/q.js:108:17)
          at process._tickCallback (node.js:355:11)
      ERROR running one or more of the platforms: Error: /PROJECT/platforms/android/cordova/run: Command failed with exit code 1
      You may not have the required environment or OS to run this project
      

      traced variables in 'module.exports.findBestApkForArchitecture' :

      console.dir(buildResults); // { apkPaths: [], buildType: 'release', buildMethod: 'gradle' }
      console.dir(arch); // 'arm'
      console.dir(paths); // []
      

      release-signing.properties is used for signing release.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                alsorokin Alexander Sorokin
                Reporter:
                ali_o_kan Laurent Deketelaere
              • Votes:
                2 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: