-
Notifications
You must be signed in to change notification settings - Fork 60
Adding google to repository list in buildscript.gradle. #73
Conversation
91bcf75
to
ba6938c
Compare
Hi @ABDULRaouf92; please see the conversation in rosjava/android_core#292 and #78. You need an updated Gradle version for this to work; |
Hi again @jubeira, thank you for the fast reply, Unfortunately it still giving the same error, although i have updated Gradle to 5.1. , do you have any further suggestion? "Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler" |
Hi again @jubeira, thank you for the fast reply, Unfortunately it still giving the same error, although i have updated Gradle to 4.10.2., then 5.1. , do you have any further suggestion? "Could not find method google() for arguments [] on repository container of type org.gradle.api.internal.artifacts.dsl.DefaultRepositoryHandler" |
Hmm which Gradle have you updated? Note that you don't need to install Gradle in your system, as all these projects are using a Gradle wrapper. I haven't had this issue since I upgraded the wrapper to 4.10. Check this SO answer for reference: https://stackoverflow.com/questions/45781489/error6-0-gradle-dsl-method-not-found-google |
I updated the one in Gradle wrapper, am building the android_core again totally from zero, but sill getting the same error. although that "compile" is deprecated, it should be replaced with "implementation" or do you think compile should work fine? |
|
rosjava is working, i have already installed it form the same link, I am using rosjava_build_tools sources |
before it failed, it gives the following warnings: ros@ros-VirtualBox:~/android_core$ catkin_make Running command: "make cmake_check_build_system" in "/home/ros/android_core/build"Running command: "make -j2 -l2" in "/home/ros/android_core/build"Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
Deprecated Gradle features were used in this build, making it incompatible with Gradle 5.0. BUILD SUCCESSFUL in 6m 57s FAILURE: Build failed with an exception.
BUILD FAILED |
I just went through the steps once again and I didn't find any issue; have you cleaned This is what I did:
Within 20 seconds I had |
it worked perfectly, thank you for the help |
This PR adds
google
repository to the buildscript. This is required for the latest Android Gradle plugin used in rosjava/android_core#286.