Open yama514 opened 5 years ago
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.
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
I sent a pull request, but in case you would like to send the pull request, then feel free to close this pull request. https://github.com/rosjava/android_extras/pull/26
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.