GitHub user revolunet opened a pull request:
https://github.com/apache/cordova-android/pull/272
fix issue with app_name containing apostrophes
When the app name has an apostrophe defined in config.xml, this cause an issue on Android
when building
cordova build android result :
```
:processDebugManifest UP-TO-DATE
:processDebugResources/Users/juju/Documents/projects/synchronized/test-cordova/cordova/platforms/android/build/intermediates/res/merged/debug/values/values.xml:4
: AAPT: Apostrophe not preceded by \ (in L'HelloCordova)
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException:
Process 'command '/Applications/android-sdk-macosx/build-tools/20.0.0/aapt'' finished with
non-zero exit value 1
* 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: 2.967 secs
ERROR building one of the platforms: Error code 1 for command: /Users/juju/Documents/projects/synchronized/test-cordova/cordova/platforms/android/gradlew
with args: cdvBuildDebug,-b,/Users/juju/Documents/projects/synchronized/test-cordova/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
You may not have the required environment or OS to build this project
Error: Error code 1 for command: /Users/juju/Documents/projects/synchronized/test-cordova/cordova/platforms/android/gradlew
with args: cdvBuildDebug,-b,/Users/juju/Documents/projects/synchronized/test-cordova/cordova/platforms/android/build.gradle,-Dorg.gradle.daemon=true,-Pandroid.useDeprecatedNdk=true
```
This fix just escape the apostrophe on Android so it can build
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/revolunet/cordova-android fix-appname-apostrophe
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/cordova-android/pull/272.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #272
----
commit ea66012901a842e4bdda110ecfa073592a628829
Author: Julien Bouquillon <julien@bouquillon.com>
Date: 2016-03-10T17:17:42Z
fix issue with app_name containing apostrophes
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at infrastructure@apache.org or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org
For additional commands, e-mail: dev-help@cordova.apache.org
|