[
https://issues.apache.org/jira/browse/CB-9185?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14606929#comment-14606929
]
wellbye commented on CB-9185:
-----------------------------
sorry i don't know how to join your development
i just use the pre packaged cordova from npm
traceing and debugging are all made in my project direcotry -- i thinks those
cordova js files were copied from your template by some pieceing-together-rule,
but i don't know which git reposity each part belongs and how to develop from
source.
after all, this problem is simple, the reason has explained above, now give a
better solution:
cordova/lib/build.js:78 change as:
var r = /-release/.exec(candidate) &&
!/-unaligned|-unsigned/.exec(candidate);
it has no sense to add the unsigned version to apk list, either debug or
release.
> Error: Could not find apk architecture: arm build-type: release
> ---------------------------------------------------------------
>
> Key: CB-9185
> URL: https://issues.apache.org/jira/browse/CB-9185
> Project: Apache Cordova
> Issue Type: Bug
> Components: CLI
> 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
> Reporter: Laurent Deketelaere
>
> When I run : {code}cordova run android --release{code}
> apk build successfully, but running fail on device.
> Error message :
> {code}
> /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
> {code}
> traced variables in 'module.exports.findBestApkForArchitecture' :
> {code}
> console.dir(buildResults); // { apkPaths: [], buildType: 'release',
> buildMethod: 'gradle' }
> console.dir(arch); // 'arm'
> console.dir(paths); // []
> {code}
> release-signing.properties is used for signing release.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]