RE: 7.2 missing dependency

László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Hi! Android Studio notified to upgrade dependecies.
I'd like make these upgrades:
implementation 'com.liferay.mobile:liferay-android-sdk:7.1.3'  ==> 7.2.0 
implementation 'com.liferay.mobile:liferay-screens:4.0.1' ==>5.0.2. 

But gradle gave me a dependency error:
ERROR: Failed to resolve: com.liferay.mobile:liferay-android-services-v72:7.2.0


How can I fix this issue?
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Ups, we didn't publish the library in jcenter. Fixing it now.

While it gets published you can add the repository:

​​​​​​​repositories { maven { url "https://dl.bintray.com/liferay/liferay-mobile" } }
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Thank you. 
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
The gradle depencency is now ok, but while I compile the compiler gave these errors:
Duplicate class com.liferay.mobile.screens.service.v62.JournalArticleService found in modules classes.jar (com.liferay.mobile:liferay-android-services-v62:7.2.0) and classes.jar (com.liferay.mobile:liferay-screens:5.0.2) 
​​​​​​​Duplicate class com.liferay.mobile.screens.service.v70.JournalArticleService found in modules classes.jar (com.liferay.mobile:liferay-android-services-v7:7.2.0) and classes.jar (com.liferay.mobile:liferay-screens:5.0.2)
thumbnail
Javier Gamarra, modified 6 Years ago. Expert Posts: 348 Join Date: 2/12/15 Recent Posts
Strange... I've published a 7.2.1 that should fix that duplicated class problem. Should be up in jcenter soon.
László Tóth, modified 6 Years ago. Junior Member Posts: 36 Join Date: 5/9/19 Recent Posts
Now it  doesn't show error, thank you.
rutu kate, modified 6 Years ago. New Member Post: 1 Join Date: 9/14/19 Recent Posts
Thanks for the information..