-
Notifications
You must be signed in to change notification settings - Fork 493
Conversation
Fixes #437 |
How to use the 5.2.0 version? From Jcenter, it seems not to exist. |
Hi @siazeroli , please use the 5.2.0-SNAPSHOT in your Gradle file 👇 if you'd like to view the image source example. compile('com.mapbox.mapboxsdk:mapbox-android-sdk:5.2.0-SNAPSHOT@aar') {
transitive = true
} Thanks! |
Yes, I tried to add it my gradle, but it told me "Error:(101, 13) Failed to resolve: com.mapbox.mapboxsdk:mapbox-android-sdk:5.2.0-SNAPSHOT". I truly want to use imagesource in my project, but 5.1.3 version does not support this class. |
You're correct, 5.1.3 does not support this class. Please post your complete gradle file so that I can see if there are any errors. |
@siazeroli it sounds like you are missing the repository specific to SNAPSHOTs. Please add this line inside your apps build.gradle file.
|
@cammace Yep, I missed it. Problem solved. Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cannot compile because of duplicate strings in
title_strings.xml and string.xml
|
||
@Override | ||
protected void onDestroy() { | ||
super.onDestroy(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
to avoid a crash on orientation change in tablets we should add:
if (handler != null && runnable != null) {
handler.removeCallbacks(runnable);
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Adds example using image source. The same example that @asheemmamoowala added to the maps SDK test app.
Has
DO NOT MERGE
label because as of this writing, the example only works while using a5.2.0-SNAPSHOT
. I'll eventually merge when stable 5.2.0 is released.