I am working in 0.69.4 react native project and i integrate one plugin country picker https://www.npmjs.com/package/rn-weblineindia-country-code and I am getting error in Android version as below
Inside Gradle file code like as below
So How i can solve this error I refer this site which told that distributionURL above 7 we need to change compile to api or implementation so i did same but no solution work . Kindly help me out on this
Related
I am new to maptiler mapbox development , I download app from maptiler. now I am trying to build that app in to my android studio. but there are some errors. I am following it's ReadMe file . I put dependency MapboxGLAndroidSDK.aar in to lib and also apply mapbox public token and secret token at appropriate place as per ReadMe steps . but still I can't run app due to following error:
NoSuchMethodError: No virtual Method setSkuId(Ljava/lang/string;)V in class Lcom/mapbox/android/telemetry/AppUserTurnstile; or its super class
these are my mapbox dependencies:
com.mapbox.mapboxsdk:mapbox-core:4.3.0
com.mapbox.mapboxsdk:mapbox-services:4.3.0
com.mapbox.mapboxsdk:mapbox-geojson:4.3.0
com.mapbox.mapboxsdk:mapbox-android-telemetry:4.3.0
com.mapbox.mapboxsdk:mapbox-android-gestures:0.4.0
these all are prebuild dependencies now I am working with offline mode so if I have to apply more dependency I have to Downoload jar/aar for it. please suggest me some way to solve these error and successful run .Thanks
finally I found a way to run my project.
the conclusion is Mapbox updated it all library and split some. So I have to download all (.aar)Libraries from Maven repository and add it to my projects as library dependency to resolve issue regarding Mapbox library.
recently I updated following library with latest version .aar file:
mapbox-android-sdk
mapbox-sdk-services
mapbox-sdk-turf
mapbox-android-telemetry
mapbox-sdk-geojson
mapbox-android-core
mapbox-android-gestures
If you have internet connectivity you can directly upgrade all the library.
otherwise you can download from this link
I am getting this error with Android Studio with an app I've developed and it was working yesterday and today I get this error with every app I try to launch via Android Studio. I have made no changes in my gradle file since yesterday and I don't use Firebase (I have seen other questions with this error and people mentioning Firebase). Does anyone know how to resolve this issue?
In your project gradle file:
compile 'com.google.gms:google-services:4.2.0' //update to latest version
And in module gradle file, update dependencies version:
implementation 'com.google.android.gms:play-services-location:16.0.0'//here is an example
I found the problem. I reverted back to
implementation 'com.google.android.gms:play-services-ads:15.0.1'
from
implementation 'com.google.android.gms:play-services-ads:17.0.0'
Changing only this has allowed my app to run. I'm not entirely sure why it was working the other day, but this has solved my issue for now.
I have tried to integrate Stripe with my project. I have gone through the integration guide from https://stripe.com/docs/mobile/android. And I keep receiving an error Could not resolve com.stripe:stripe-android:6.1.2.
I have put into my build.gradle file Could not resolve com.stripe:stripe-android:8.0.0. Additionally, I have found the GitHub project that version varies from the one in the guide and I have tried it. The version number in the GitHub project is 8.0.0.
Full error log:
The short version of my dependencies in gradle:
dependencies {
...
implementation 'com.stripe:stripe-android:8.0.0'
...
}
Is there any additional maven repo or something that I should add to the gradle to be able to add this dependency to the project?
You might have enabled offline work for gradle,
Uncheck the box and sync the project again . It should fix the problem.
I am facing an error when including Realm API in to my Android project
Please provide instructions to set it up in Android studio.
make sure you have included
compile 'io.realm:realm-android:0.80.0'
under dependencies in your build.gradle file
Official Spring for Android page mentions to add following dependency code.
dependencies {
compile 'org.springframework.android:spring-android:1.0.1.RELEASE'
}
which is latest version of build as of this time.(as per website)
I have added it in apps' build.gradle but I get an error as
Error:Failed to find: org.springframework.android:spring-android:1.0.1.RELEASE
What is the right way to do it?
I could add google play services as dependency in the same way.
Here is the correct dependency for the Rest Template module. I've corrected this on the Spring for Android project page. Thank you very much for pointing out this error.
dependencies {
compile 'org.springframework.android:spring-android-rest-template:1.0.1.RELEASE'
}
You can find correct and lastest version on spring site. Under the Quick Start title.
http://projects.spring.io/spring-android/