Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

Task :cv_bridge:verifyReleaseResources FAILED #303

Open
yama514 opened this issue May 1, 2019 · 3 comments
Open

Task :cv_bridge:verifyReleaseResources FAILED #303

yama514 opened this issue May 1, 2019 · 3 comments

Comments

@yama514
Copy link

yama514 commented May 1, 2019

Hi,

I encountered the problem when I did catkin_make. I am using Ubuntu 16.06 with Kinetic. The error log is below:


...
Configure project :cv_bridge

Task :cv_bridge:verifyReleaseResources FAILED

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':cv_bridge:verifyReleaseResources'.
    java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
    Output: /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml:2: error: attribute 'package' in tag is not a valid Android package name: 'cv_bridge'.

    Command: /home/hao/.gradle/caches/transforms-1/files-1.1/aapt2-3.2.1-4818971-linux.jar/4f7bf893ccf0f151349431e079665ac3/aapt2-3.2.1-4818971-linux/aapt2 link -I
    /home/hao/Android/Sdk/platforms/android-28/android.jar
    --manifest
    /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/aapt_friendly_merged_manifests/release/processReleaseManifest/aapt/AndroidManifest.xml
    -o
    /tmp/aapt-2967009013395972423-out
    -R
    /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/res/compiled/release/mipmap-mdpi-v4_ros_icon.png.flat
    -R
    /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/res/compiled/release/mipmap-hdpi-v4_ros_icon.png.flat
    -R
    /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/res/compiled/release/values_values.arsc.flat
    -R
    /home/hao/AndroidStudioProjects/android_core/src/android_extras/cv_bridge/build/intermediates/res/compiled/release/mipmap-ldpi-v4_ros_icon.png.flat
    --auto-add-overlay
    --non-final-ids
    -0
    apk
    --no-version-vectors
    Daemon: AAPT2 aapt2-3.2.1-4818971-linux Daemon #0
    ...


Please let me know if other info/log is need. Thank you.

@yama514
Copy link
Author

yama514 commented May 1, 2019

I modified android_extras/cv_bridge/src/AndroidManifest.xml, replaced package="cv_bridge" to package="com.github.rosjava.android_extras.cv_bridge". The problem is gone.

@MiraiHattori
Copy link

I was facing the same problem, so thank you for finding the way to solve it.
The path might be different in kinetic branch now.
https://github.com/rosjava/android_extras/blob/kinetic/cv_bridge/src/main/AndroidManifest.xml#L3

@MiraiHattori
Copy link

I sent a pull request, but
in case you would like to send the pull request, then feel free to close this pull request.
rosjava/android_extras#26

supercrazysam pushed a commit to supercrazysam/android_extras that referenced this issue May 26, 2020
Execution failed for task ':cv_bridge:verifyReleaseResources'

Solution:
rosjava/android_core#303 (comment)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants