Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin won't compile with Cordova 5 #26

Closed
karvapallo opened this issue Sep 23, 2015 · 2 comments
Closed

Plugin won't compile with Cordova 5 #26

karvapallo opened this issue Sep 23, 2015 · 2 comments

Comments

@karvapallo
Copy link

I'm not able to build my project after upgrading to Cordova 5. This plugin was the culprit.

Here's the relevant build error:

:processDebugManifest/Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/AndroidManifest.xml:7:53 Error:
    Attribute application@icon value=(@drawable/icon) from AndroidManifest.xml:7:53
    is also present at android.org.apache.cordova.videoeditor:android-ffmpeg-java:unspecified:debug:12:9 value=(@drawable/ic_launcher)
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:7:5 to override
 FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':processDebugManifest'.
> Manifest merger failed : Attribute application@icon value=(@drawable/icon) from AndroidManifest.xml:7:53
    is also present at android.org.apache.cordova.videoeditor:android-ffmpeg-java:unspecified:debug:12:9 value=(@drawable/ic_launcher)
    Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:7:5 to override

* 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.015 secs

/Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/cordova/node_modules/q/q.js:126
                    throw e;
                          ^
Error code 1 for command: /Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/gradlew with args: cdvBuildDebug,-b,/Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/build.gradle,-Dorg.gradle.daemon=true
ERROR building one of the platforms: Error: /Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/cordova/build: Command failed with exit code 1
You may not have the required environment or OS to build this project
Error: /Users/username/Projects/torreville-update/frontend/TorreVille/platforms/android/cordova/build: Command failed with exit code 1
    at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:139:23)
    at ChildProcess.emit (events.js:110:17)
    at maybeClose (child_process.js:1015:16)
    at Process.ChildProcess._handle.onexit (child_process.js:1087:5)
@rossmartin
Copy link
Collaborator

Have you tried this workaround mentioned in #24 ?

"Workaround:

Add xmlns:tools="http://schemas.android.com/tools" to your manifest tag in AndroidManifest.xml and tools:replace="android:icon" in your application tag.

This works for me."

I'm going to be updating an app of mine soon and will look into this.

Thanks.

@rossmartin
Copy link
Collaborator

fixed via ab2bc26

raozhiming pushed a commit to elastos/Elastos.Trinity.Plugins.VideoEditor that referenced this issue Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants