-
Notifications
You must be signed in to change notification settings - Fork 166
Update to gradle 5.1.1, android gradle plugin 3.4.0 #300
Comments
Hi @wmmc88, It looks like it's failing to resolve Updating Gradle versions has brought some hiccups in the past; last time I had to upgrade all Gradle versions across all rosjava repositories at once because of one incompatibility. Do you need Gradle 5 for some particular reason? |
@jubeira since im using gradle to include the ros android, it uses calls the chain of buildscripts and apply's the gradle version across my entire project (I don't understand why it needs to do this as it's not building anything from ros-android itself, just pulling in artifacts, right?). I was hoping to take advantage of some of the new features in the android gradle plugin, but this depends on a higher version of gradle and both the gradle version and the android gradle plugin version are pulled in from the ros buildscripts. |
How are you accomplishing that? |
According to this , it says I need to also replace the buildscript portion of the grade file so that it applies the buildscript.gradle file in the android -core repo in addition to the needed lines in the dependencies section. |
Alright; yes, that's correct, but you can do what those scripts do for you manually as well. Applying the buildscripts is basically a convenient shortcut, but you can also copy the contents into your script and modify them. If you check the contents of the applied buildscript, it does the following:
Instead of applying the first buildscript, try doing what it does manually in your buildscript with the version of the Gradle plugin that you want. |
I upgraded to plugin 3.2.2 w/ gradle 4.10.1 and everything worked fine. Then when i tried to upgrade to plugin 3.4.0 w/ gradle 5.1.1, it could no longer resolve org.ros.messages (Time and Duration). I think these are supposed pulled in from bootstrap somehow? |
It's not that they are pulled from That being said, I'm not sure why the new Gradle version breaks. I think |
Does the "ros-android" gradle plugin do anything useful? I think i misphrased my earlier reply. When I use plugin 3.4 w/ gradle 5, I am still able to resolve most ros things. My module level ros dependencies are:
and they all resolve perfectly fine. My issue comes from specifically resolving the |
Looks like you need Try adding
I don't know why it didn't complain before. If I'm not mistaken, ROS messages depend on it so it would be a second-level dependency. Maybe the new version of Gradle needs to specify it as well..? |
thanks. is working now after adding the message_generation dependency. i thought android_core_components already pulled in message_generation, but i guess it doesnt. |
I think we should use
and still not working, miss another dependencies...i was manually added several dependencies such as |
@jubeira really need your help ..bro |
I don't remember what else I did to get it working and am no longer working on that project |
@jubeira i just manually added |
i am using Gradle 5.5 for nested build, btw. |
Are you planning to update the gradle dependencies @jubeira ? I tried updating the values as has been done before , but it resulted in many dependencies failing to resolve.
The text was updated successfully, but these errors were encountered: