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

Task :cv_bridge:verifyReleaseResources FAILED #303

Open

Description

@yama514

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.

Activity

  1. yama514 commented on May 1, 2019

    @yama514
    Author

    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.

  2. MiraiHattori commented on Nov 5, 2019

    @MiraiHattori

    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

  3. MiraiHattori commented on Nov 5, 2019

    @MiraiHattori

    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

  4. added a commit that references this issue on May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions