Grease icon indicating copy to clipboard operation
Grease copied to clipboard

Cannot find sdk-common

Open bkeller-vuzix opened this issue 6 months ago • 1 comments

I'm trying to use this plug-in, but the versions seem incompatible.

I have Android Studio Meerkat and am targeting API 35.

I noticed the Grease wrapper is using 8.4, so I set mine to match. My Android Gradle Plugin Version is 8.3.2, and my Gradle Version is 8.4.

I can sync my project and run gradle assembleRelease with no issues.

Then I change my plugins to include grease with:

plugins {
    id 'com.android.library'
    id "io.deepmedia.tools.grease" version "0.3.4"
}

If I make no other changes, than using this plug-in, when I try to sync with my gradle files I get the error:

   > Could not find com.android.tools:sdk-common:31.1.4.
     Searched in the following locations:
       - https://plugins.gradle.org/m2/com/android/tools/sdk-common/31.1.4/sdk-common-31.1.4.pom
     Required by:
         project :BarcodeLib > io.deepmedia.tools.grease:io.deepmedia.tools.grease.gradle.plugin:0.3.4 > io.deepmedia.tools:grease:0.3.4

Is there some step I've missed?

bkeller-vuzix avatar Jun 24 '25 14:06 bkeller-vuzix

Hello. Try to add google repository in your plugin management like this https://github.com/deepmedia/Grease/blob/eed3781f871e99940230e9b9b65e12a3db510ac2/settings.gradle.kts#L3

0xera avatar Jun 25 '25 15:06 0xera