Can't compile android maps untils anymore - android

A very uncommon problem occured to me. Everything was perfectly working and all of the sudden I couldn't compile 'com.google.maps.android:android-maps-utils:0.5.+' anymore.
I couldn't find a way to fix it, so I updated Android Studio to version 3.0.1, created a new project and tried to compile just this dependency. My other dependencies cause no problems but this one is giving the error message:
Unable to resolve dependency for ':app#debug/compileClasspath': Could not find any version that matches com.google.maps.android:android-maps-utils:0.5.+.
Could not find any version that matches com.google.maps.android:android-maps-utils:0.5.+.
Versions that do not match:
0.5
0.4.4
0.4.3
0.4.2
0.4.1
+ 9 more
Required by:
project :app*
Does anybody has an idea on how to fix this?

There is no version matching the 0.5.+ pattern for maputils. Use implementation 'com.google.maps.android:android-maps-utils:0.5' instead.

Related

Adding Gradle Dependency Breaks Gradle Build

I added the stripe sdk to my kotlin app and can no longer build my application.
Addition to grade file:
implementation 'com.stripe:stripe-android:16.8.2'
Build error:
/Users/username/.gradle/caches/transforms-2/files-2.1/6fabb8e15860d0b2ea75a56e95ee9aa5/jetified-kotlin-stdlib-common-1.5.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
Removing the stripe dependency fixes the issue. I also tried deleting the cache folder referenced in the error message and it was just recreated and the issue persisted.
The problem seems to be a mismatch between the kotlin library used in your project and the version of the plugin that is not compatible.
Upgrade your Gradle version by going to File>Project Structure.
Ps:(also try downgrading your kotlin version to one of the 1.4.x versions)
Another developer ran into this same issue and solved it by upgrading Gradle
I updated my gradle like this
// id 'org.jetbrains.kotlin.android.extensions' deprecated
id 'kotlin-parcelize'
and in project gradle add this
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.32"
so now it works.

is there any comptability of android studio 1.5.1 and retrofit

I am facing below error while adding retrofit library in android studio 1.5.1.
Error:(8, 0) Gradle DSL method not found: 'implementation()'
Possible causes:The project 'RetrofitMy Application' may be using a version of Gradle that does not contain the method.
I googled in order to resolve above issue but did not find yet ,any one can help me
You should change your
implementation 'thelibrary:1.0.0'
to
compile 'thelibrary:1.0.0'

Problem Android Studio - failed to resolve com.android.support appcompat-v7 29 [duplicate]

This question already has answers here:
Android Studio keeps refusing to resolve com.android.support:appcompat-v7:29.0.1
(6 answers)
Closed 3 years ago.
I'm trying to start a course with Android Studio 2.2.1, but when I create a new project I come upon the error message:
failed to resolve com.android.support appcompat-v7 29
Also my Mainactivity.java gives me the error:
Method does not override method from superclass.
I've tried to add the Maven URL, but with no luck.
When I try to rebuild the project I get:
Error:A problem occurred configuring project ':app'. Could not resolve
all dependencies for configuration ':app:_debugApkCopy'. Could not
find any version that matches com.android.support:appcompat-v7:29.+.
Versions that do not match:
26.0.0-alpha1
25.3.1
25.3.0
25.2.0
25.1.1
+ 31 more Required by: DemoAppTwo:app:unspecified
Does anybody know a solution for this, so that I can start learning to code in android please?
Thanks in advance!
Kind regards,
KevinDP
That is not a version of the support library that exists - the last version was 28 (and it has since been replaced).
You should download the latest version of Android Studio (currently 3.5.3) from the Android Developers website and start again with that. It will create the new project for you with the correct dependencies.

Using Google Cloud PubSub in Android, find the correct library

Im Using Android Studio 3.0.1, the project uses SDK Version 26. I try to pull messages from Google Cloud PubSub Module using the library 'grpc-pubsub-v1' adding in the app build.gradle the line:
compile ('com.google.api.grpc:grpc-pubsub-v1:0.0.2')
When the gradle sync the next error appear:
Error:Execution failed for task':app:transformDexArchiveWithExternalLibsDexMergerForDebug'. java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
Maybe the version of the library is not compatible with the version of SDK, Gradle or other thing, also, adding the line 'multiDexEnabled true' dont fix the problem, the gradle version is 3.0.1.
Which is the correct library to use, or how to find it?
As you are using gradle version is 3.0.1, you need to change compile to implementation as shown in this gradle document. It is a change that was done on the version 3.0.

Not able to update respoke sdk to 1.1.1

When I am trying to update by respoke sdk using gradle " compile 'com.digium.respoke:respoke-sdk:1.1.1'".
I am getting this Error:
Failed to resolve: respoke-sdk-android:AndroidAsync:unspecified
Please help me out.
There was a problem with the way that the Respoke SDK was packaged for Maven in version 1.1.1. This problem has now been resolved with version 1.1.2 of the SDK, which you can use by specifying the following in your Gradle dependencies:
compile 'com.digium.respoke:respoke-sdk:1.1.2'

Categories

Resources