ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Android 8.1 and ROS

asked 2018-04-18 02:36:20 -0500

MarkusHHN gravatar image


i have an existing application which i must upgrading from Android 6.0 to Android 8.1. I hasnt Problem to increase the targetSdkVersion to 26 (Android 8.0). But when i upgrade the targetSdkVesion to 27 (Android 8.1) then the crashes. I search for the problems and i found out that the problem is about the new notificationsystem. The roslibrary which is using some notification has the old system.

For the new Notificationsystem on Android 8.1 i need to add this library

dependencies { implementation "" }

But I need to upgrade the Android plugin and the gradle version. But i use an older gradle version for the roslibrary in Android Studio.

What I have to do to integrate the new Notificationsystem in Android 8.1 with the ros-library?

I know the question i generally but I hope I can get any tips.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2018-04-19 13:51:43 -0500

jubeira gravatar image

updated 2018-09-07 15:29:47 -0500

Hi @MarkusHHN,

Yes, Android core and in general any ROS-Android projects are being created with an older Gradle version and Android plugin. Unfortunately, a manual upgrade won't be trivial (at least I guess you may find some issues in your way). Here's some guidelines: Try using android_core from source when you build your application (i.e., include that package in the same workspace of your application). Go to the top level gradle buildscript of your application and modify both the Gradle version and the buildscript block. You may need to regenerate the wrapper with an installed Gradle in your system (install Gradle from apt , generate new wrappers and place them in the folder where the old wrappers were). The standard buildscript block points to , which specifies Android plugin 2.2.3. You will probably need to change that.

Finally, you may need to upgrade the buildToolsVersion in the bottom level Gradle script.

Note: Upgrading the Gradle version to 4.x and the Android-Gradle plugin to support newer devices would be interesting; the problem is that the new build tools deprecated one of the command line tools used to create projects (see here: ).

EDIT: see .

edit flag offensive delete link more


thank you for your tip.

MarkusHHN gravatar image MarkusHHN  ( 2018-04-20 04:13:18 -0500 )edit

Question Tools



Asked: 2018-04-18 02:36:20 -0500

Seen: 300 times

Last updated: Sep 07 '18