I upgraded AIDE and now it can't find dependencies!

184 views
Skip to first unread message

McShooty

unread,
Dec 1, 2015, 4:55:55 PM12/1/15
to AIDE - Android Java IDE
I upgraded AIDE last night and suddenly it can't find the Google Play Location Services dependency (compile 'com.google.android.gms:play-services-location:7.0.0') in my build.gradle. I've exited AIDE, deleted the .aide folder and restarted AIDE which caused the .aide folder to be recreated and google_m2repository_r22.zip to be downloaded in to it. The crazy thing is I can actually see all the play-services-location-7.0.0.* files in the m2repository so I know they are there but AIDE steadfastly refuses to find them since I upgraded.

Can anyone help, please?

McShooty

unread,
Dec 2, 2015, 2:08:37 PM12/2/15
to AIDE - Android Java IDE
Never mind, it's all sorted now. It turns out that you now need another line in the build.gradle as well as the original line

compile 'com.google.android.gms:play-services-location:+'

which causes the android m2repository to be downloaded even though the play-services-location files are all in the google m2repository which is already downloaded. Clear as mud.

The moral is, add the library using the "Add to Project" option in the files list, then AIDE will add all the correct lines to the build.gradle for you. Still, it would have been nice to get some sort of explanation somewhere that this upgrade was going to break existing dependencies and that they would need to be added again using the "Add to Project" to get things working.
Reply all
Reply to author
Forward
0 new messages