Google map setClustering(ClusteringSettings) method not resolving - android

I am trying to use Google Maps Extension in my app. But when i try to use setClustering method to my Google Map object its showing not resolving error, that means google map class does not have this method.
mMap.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true));
However, according to library documentation i have to use like this. Also the available Stackoverflow answers also did like this answer way.
this is my dependency
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:27.+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:cardview-v7:27.+'
compile 'com.android.support:design:27.+'
compile 'com.android.volley:volley:1.0.0'
compile 'com.google.code.gson:gson:2.7'
compile 'com.google.android.gms:play-services-location:12.0.1'
compile 'com.google.android.gms:play-services-maps:12.0.1'
compile 'com.google.android.gms:play-services-places:12.0.1'
compile 'com.androidmapsextensions:android-maps-extensions:2.4.0'
testCompile 'junit:junit:4.12'
}
How to solve this issue?

GoogleMap should be com.androidmapsextensions.GoogleMap not com.google.android.gms.maps.GoogleMap check your import.
com.androidmapsextensions.GoogleMap map;
map.setClustering(new ClusteringSettings().enabled(false).addMarkersDynamically(true));

Related

"All com.android.support libraries must use the exact same version specification" does not want to go away

I've noticed today that I keep getting the following error in Gradle:
I have no idea which library is causing it. Ive tried to remove them one by one, or update ones I suspect, but no luck.
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.android.support:support-v4:25.3.1'
compile 'com.android.support:recyclerview-v7:25.3.1'
compile 'com.android.support:design:25.3.1'
compile 'com.mcxiaoke.volley:library:1.0.19'
compile 'com.readystatesoftware.sqliteasset:sqliteassethelper:+'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.toptoche.searchablespinner:searchablespinnerlibrary:1.3.1'
compile 'com.googlecode.plist:dd-plist:1.16'
compile 'com.github.siyamed:android-shape-imageview:0.9.+#aar'
compile 'org.jsoup:jsoup:1.8.3'
compile 'com.google.android.gms:play-services-location:11.0.4'
Any help would be appreciated!
Thanks
Ok, so I found the issue. Turns out its renderscript, as seen in this:
https://github.com/Dimezis/BlurView/issues/46
Hope this helps someone else out there!

com.google.firebase.auth.FirebaseAuth is not linked

I try Firebase push notification in a separate Android studio project and it
work fin but when I integrate it in a existing project I had this problem .
Error :
D/FirebaseApp: com.google.firebase.auth.FirebaseAuth is not linked. Skipping initialization.
Depend:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile project(':library')
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.baoyz.swipemenulistview:library:1.3.0'
compile 'de.hdodenhof:circleimageview:2.1.0'
compile 'com.squareup.okhttp3:okhttp:3.2.0'
}
apply plugin: 'com.google.gms.google-services'
Use implementation instead of compile. Also, make sure you have implemented Firebase Auth in your project.

What are firebase dependencies for appcompact-v7:25.3.1

I keep getting errors when I try to sync my gradle. It has something to do with the SDK version. I would like to know which firebase dependcies fit to 25.3.1
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
//compile 'com.firebase:firebase-jobdispatcher:1.0.2'
//compile 'com.firebaseui:firebase-ui:0.5.2'
compile 'com.firebaseui:firebase-ui-database:1.2.0'
compile 'com.firebaseui:firebase-ui-auth:1.2.0'
compile 'com.firebaseui:firebase-ui-storage:1.2.0'
compile 'com.firebaseui:firebase-ui:1.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.google.firebase:firebase-auth:10.0.1'
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
You should use 10.2.1 and 1.2.0 version .
compile 'com.google.firebase:firebase-auth:10.2.1'
compile 'com.google.firebase:firebase-messaging:10.2.1'
Clean-Rebuild and Run .
// Getting a "Could not find" error? Make sure you have
// the
latest Google Repository in the Android SDK manager

InstaBug, cannot resolve 'Builder'

Trying to implement InstaBug first time, however, when I initialize it,
new Instabug.Builder(this, "XXXXXXXXXXXXXXXXXXXX")
.setInvocationEvent(Instabug.IBGInvocationEvent.IBGInvocationEventShake)
.build();
Android Studio says cannot resolve symbol Builder
Though Builder extends from java.lang.Object , helpless to figure why this happens. Any fix?
EDIT:
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'com.google.code.gson:gson:2.5'
compile 'com.android.support:recyclerview-v7:23.1.1'
compile "com.google.android.gms:play-services:8.4.0"
compile 'com.android.support:cardview-v7:+'
compile 'com.android.support:design:+'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.commit451:PhotoView:1.2.4'
compile 'net.danlew:android.joda:2.9.1'
compile project(":volley")
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile ("com.instabug.library:instabugsupport:+") { exclude group: 'com.mcxiaoke.volley', module: 'library' }
Instabug.Builder was introduced in v2+ of Instabug SDK.
Can you try specifying the latest version of Instabug in your gradle, as follows:
compile('com.instabug.library:instabugcompat:2.2.1')
P.S: v2.2.1 was latest at the time of writing
P.S2: instabugcompat is the equivalent of instabugsupport in v2+
P.S3: Instabug doesn't include Volley anymore so you don't need to exclude it anymore
For more details, don't hesitate to ask. And you can check this out as well as #m-d mentioned

How to avoid android.support.v4.app.ActivityCompatHoneycomb has already been added

Hil all,
this my error :
Error:Class android.support.v4.app.ActivityCompatHoneycomb has already
been added to output. Please remove duplicate copies.
and my dependecies are :
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('com.android.support:support-v4:22.0.0') {
exclude group: 'com.android.support', module: 'support-v4'
}
compile ('com.google.android.gms:play-services:7.0.0')
compile 'com.squareup.picasso:picasso:2.5.2'
compile files('libs/json-simple-1.1.1.jar')
compile files('libs/ormlite-android-4.45.jar')
compile files('libs/ormlite-core-4.45.jar')
compile files('libs/jackson-databind-2.1.4.jar')
compile files('libs/jackson-core-2.1.4.jar')
compile files('libs/jackson-annotations-2.1.4.jar')
compile files('libs/httpmime-4.1.jar')
compile files('libs/YouTubeAndroidPlayerApi.jar')
compile files('libs/paralloidviews.jar')
compile files('libs/jsr250-api-1.0.jar')
compile project(':volley')
compile project(':Android-RSS-Reader-Library-master')
compile project(':facebook')
compile project(':Forecast')
compile project(':headerListView')
compile project(':library-sliding-menu')
compile files('libs/panoramagl.jar')
compile project(':paymentKit_lib')
compile project(':ProgressWheel-master')
compile project(':UIL_library')
compile files('libs/coverflowlibrary.jar')
}
so where I could find the duplacte copies, can you help me please, I struggle with this error a long time ago !
This is most probably happening because one of your library projects already contains support-v4. Try to remove compile('com.android.support:support-v4:22.0.0') from your dependencies and check. This should solve the problem

Categories

Resources