Software Archive
Read-only legacy content
17061 Discussions

android Build failed

mohammad_javad_a_
454 Views

Hello
During programming, I came to the following problem
Please if someone can help me.
Thank you

 

 

:CordovaLib:processDebugJavaRes UP-TO-DATE
:CordovaLib:packageDebugJar
:CordovaLib:compileDebugNdk
:CordovaLib:packageDebugJniLibs UP-TO-DATE
:CordovaLib:packageDebugLocalJar UP-TO-DATE
:CordovaLib:packageDebugRenderscript UP-TO-DATE
:CordovaLib:bundleDebug
:prepareOrgXwalkXwalk_core_library_beta154438413Library
:prepareArmv7ReleaseDependencies
:compileArmv7ReleaseAidl
:compileArmv7ReleaseRenderscript
:generateArmv7ReleaseBuildConfig
:generateArmv7ReleaseAssets UP-TO-DATE
:mergeArmv7ReleaseAssets

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of '.../Nosha/platforms/android/assets/www/images/?????????? ????????.jpg'.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 5.326 secs

.../Nosha/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: .../Nosha/platforms/android/gradlew with args: cdvBuildRelease,-b,.../Nosha/platforms/android/build.gradle,-Dorg.gradle.daemon=true
Command finished with error code 8: .../Nosha/platforms/android/cordova/build --release
ERROR building one of the platforms: Error: .../Nosha/platforms/android/cordova/build: Command failed with exit code 8
You may not have the required environment or OS to build this project
Error: .../Nosha/platforms/android/cordova/build: Command failed with exit code 8
    at ChildProcess.whenDone (/Developer/cordova/cordova-cli/5.1.1/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:134:23)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Process.ChildProcess._handle.onexit (child_process.js:810:5)

0 Kudos
4 Replies
PaulF_IntelCorp
Employee
454 Views

Are you attempting to build with CLI 4.1.2 or CLI 5.1.1?

0 Kudos
mohammad_javad_a_
454 Views

 build  CLI 5.1.1

0 Kudos
PaulF_IntelCorp
Employee
454 Views

Are you specifying some icons or splash screens using JPG images? If so, convert those images to PNG images, the JPG images don't work with Cordova CLI 5 build systems.

0 Kudos
Pamela_H_Intel
Moderator
454 Views

As Paul says, you need to convert your images to PNGs, but also, your image name might have some characters that are not being translated correctly. You may need to change the filename.

FAILURE: Build failed with an exception.

* What went wrong:
Could not list contents of '.../Nosha/platforms/android/assets/www/images/?????????? ????????.jpg'.

0 Kudos
Reply