Support library version specification - android-studio

What is the support library version for compileSdkVersion24 ?
i was using these support libraries.
compile 'com.android.support:design:23.1.1'
compile 'com.android.support:recyclerview-v7:23.1.1'
after updating sdk, i tried changing the support version from 23.1.1 to 24.1.1. it says,
failed to resolve com.android.support:design:24.1.1

see this https://developer.android.com/topic/libraries/support-library/revisions.html
Android Support Library,recommend version is 24.0.0
so change this
com.android.support:design:24.1.1
to this
com.android.support:design:24.0.0

24.0.0 Android studio should recommend this.

Related

Android Studio Upgrade to not-latest version of kotlin plugin

I'd like to upgrade the kotlin plugin bundled with Android Studio to a newer version (1.4.30), but not the latest version (1.4.31). The reason is that I think there's a bug with the latest one, but I would still like to use a version of the plugin that's relatively new instead of the one that comes bundled by default with the latest version of Android Studio (1.3.72 - almost a year old).
Is there a way to do this?

org.gradle.tooling.model.UnsupportedMethodException: Unsupported method: AndroidArtifact.getBuildConfigFields()

I was building my android project on Android Studio 4.2.1.
but I get this error:
org.gradle.tooling.model.UnsupportedMethodException: Unsupported method:
AndroidArtifact.getBuildConfigFields().
The version of Gradle you connect to does not support that method.
To resolve the problem you can change/upgrade the target version of Gradle you connect to.
Alternatively, you can ignore this exception and read other information from the model.
my Gradle version:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.4.1-bin.zip
my Gradle plugin tools version:
com.android.tools.build:gradle:4.1.0-alpha09
The both Gradle and Gradle plugin are the latest versions. The exception says that I need to update/change the connected Gradle version.
I am impossible to upgrade further version because I am already on the latest version. So, the only thing I can do is changing the grade version, but which one?
I was able to build project successfully by using :
classpath 'com.android.tools.build:gradle:4.0.0'
But if you are trying to use jetpack compose you will have to use latest canary version of android studio.

How can I update com.android.support:exifinterface version

Currently I am using Android Studio 2.3.3. I wanted to update the support library version from 25.3.1 to 26.0.1. So inside my build.gradle file I did all the necessery changes and changed all the support library versions from 25.3.1 to 26.0.1. After that when I synced the project it shows me an error(I have given a screenshot) in compile 'com.android.support:appcompat-v7:26.0.1
All com.android.support libraries must use the exact same version...Found versions 26.0.1,25.3.1.Examples include com.android.support:animated-vector-drawable:26.0.1 and com.android.support:exifinterface:25.3.1
The error screen
My question is that where can I find com.android.support:exifinterface to update
I tried the same in Android Studio 3.0.0. That showed the same error
Try this:~
compile 'com.android.support:design:26.0.0-alpha1'

Cocos2d-x and ndk version

I downloaded the latest cocos2d-x-3.12, but things didn't turn out to work when I got latest version of ndk.
My question what versions of cocos2d-x and ndk should I use?
According to the comments in this post:
http://discuss.cocos2d-x.org/t/cocos2d-x-v3-12-released/30641/70
cocos2d-x 3.12 should work with ndk r11+ specifically the r11c version.
and for more informations you can check the build requirements for cc2d-x 3.12 in here:
https://github.com/cocos2d/cocos2d-x#build-requirements

Problems with Gradle in Android Studio

I had to reinstall Android Studio and now when I try to build my projects I get this error:
org.gradle.tooling.GradleConnectionException: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'.: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'http://services.gradle.org/distributions/gradle-1.9-all.zip'.
I tried editing system variables and Android Studio settings but nothing has seemed to work.
Andrew
This is a problem with the Android plugin v0.7.2 and will be fixed in 0.7.3. In the meantime you can force it back to 0.7.1 following the answer here:
Android Studio fails - unsupport unsupported major minor version 51.0

Resources