Multiple entries with the same key: 24.0.0 rc4 = 24.0.0 rc4

After updating Android Studio to version 2.2.3, an error message appears:

IllegalArgumentException: multiple records with the same key: 24.0.0 rc4 = 24.0.0 rc4 and 24.0.0 rc4 = 24.0.0 rc4

+4
source share
3 answers

Just go to the folder ANDROID_SDK_LOCATION/build-toolsand delete 24.0.0-preview(or other folders)

Or, of course, you can go Android SDK Manager/ Android Studio > SDK Manager > SDK Tools > Show Package Detailsand uncheck the preview and older versions of RC. This does the same thing as simply deleting the build-tools / 24 files ....

+1
source

If this happened recently after updating a few bits.

Preferences Android Studio, Android SDKSDK Tools, , , 24.0.0 rc4 ( name) Android SDK Build-Tools. , , Apply. 24.0.0 24-rc4, Gradle.

buildToolsVersion Gradle 24-rc4.

+7

this problem may be Android N preview and Android N uses the same build version (24). Therefore, the answer of mtrakal is right. U can find built-in tools that have two 24.0.0 rc3 installed.

0
source

All Articles