[
https://issues.apache.org/jira/browse/CB-14202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Robert Brenton updated CB-14202:
--------------------------------
Description:
If you create an Android project with version 7.0.0 or 7.1.0 and create a res
directory in platforms/android/res the build fails with a confusing message.
Some plugins create this directory and or have instructions are to copy
drawables into this directory.
Potential solutions could be
# More descriptive error
# Better detection that is a Android Studio project would allow for better
diagnoses of this failure
# Suggest to user to move the drawables to the Android Studio project format
indicating the presence of the res directory and the app directory
To reproduce
# cordova create test9 com.Test.Test9
# cordova platform add android
# mkdir -p platforms/android/res/drawable
# cp image.png platforms/android/res/drawable
# cordova build --verbose
*The error*
{{Generating platform-specific config.xml from defaults for android at
/tmp/test9/platforms/android/res/xml/config.xml}}
{{cp: copyFileSync: could not write to dest file
(code=ENOENT):/tmp/test9/platforms/android/res/xml/config.xml}}{{Merging
project's config.xml into platform-specific android config.xml}}
{{Parsing /tmp/test9/platforms/android/res/xml/config.xml failed}}
{{(node:20148) UnhandledPromiseRejectionWarning: Unhandled promise rejection
(rejection id: 1): Error: ENOENT: no such file or directory, open
'/tmp/test9/platforms/android/res/xml/config.xml'}}
was:
If you create an Android project with version 7.0.0 or 7.1.0 and create a res
directory in platforms/android/res the build fails with a confusing message.
Some plugins create this directory and or have instructions are to copy
drawables into this directory. Perhaps a more descriptive error or better
detection that is a Android Studio project would allow for better diagnoses of
this failure.
To reproduce
# cordova create test9 com.Test.Test9
# cordova platform add android
# mkdir -p platforms/android/res/drawable
# cp image.png platforms/android/res/drawable
# cordova build --verbose
{{Generating platform-specific config.xml from defaults for android at
/tmp/test9/platforms/android/res/xml/config.xml}}
{{cp: copyFileSync: could not write to dest file
(code=ENOENT):/tmp/test9/platforms/android/res/xml/config.xml}}{{Merging
project's config.xml into platform-specific android config.xml}}
{{Parsing /tmp/test9/platforms/android/res/xml/config.xml failed}}
{{(node:20148) UnhandledPromiseRejectionWarning: Unhandled promise rejection
(rejection id: 1): Error: ENOENT: no such file or directory, open
'/tmp/test9/platforms/android/res/xml/config.xml'}}
> Unexplained Android build failure when drawables added.
> -------------------------------------------------------
>
> Key: CB-14202
> URL: https://issues.apache.org/jira/browse/CB-14202
> Project: Apache Cordova
> Issue Type: Bug
> Components: cordova-android
> Affects Versions: 7.0.0, 7.1.0
> Environment: cordova 8.0.8
> cordova-android 7.0.0
> Reporter: Robert Brenton
> Priority: Minor
>
> If you create an Android project with version 7.0.0 or 7.1.0 and create a res
> directory in platforms/android/res the build fails with a confusing message.
> Some plugins create this directory and or have instructions are to copy
> drawables into this directory.
> Potential solutions could be
> # More descriptive error
> # Better detection that is a Android Studio project would allow for better
> diagnoses of this failure
> # Suggest to user to move the drawables to the Android Studio project format
> indicating the presence of the res directory and the app directory
> To reproduce
> # cordova create test9 com.Test.Test9
> # cordova platform add android
> # mkdir -p platforms/android/res/drawable
> # cp image.png platforms/android/res/drawable
> # cordova build --verbose
> *The error*
> {{Generating platform-specific config.xml from defaults for android at
> /tmp/test9/platforms/android/res/xml/config.xml}}
> {{cp: copyFileSync: could not write to dest file
> (code=ENOENT):/tmp/test9/platforms/android/res/xml/config.xml}}{{Merging
> project's config.xml into platform-specific android config.xml}}
> {{Parsing /tmp/test9/platforms/android/res/xml/config.xml failed}}
> {{(node:20148) UnhandledPromiseRejectionWarning: Unhandled promise rejection
> (rejection id: 1): Error: ENOENT: no such file or directory, open
> '/tmp/test9/platforms/android/res/xml/config.xml'}}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]