#Resolve fail after upgrade from v2 to v3

1 messages · Page 1 of 1 (latest)

covert pulsar
#

I got this error when force resolve external dependency for android.

Execution failed for task ':process_androidx.activity.activity-1.12.0-alpha01.aar'.

Unsupported class file major version 61

I was able to resolve external dependency successfully before upgrading and error just occur after the upgrade.
Using Unity 2022.3.62f1

I tried disable all services in the Essential Kit settings too. but i still got the error.

rain hazel
#

Please share what plugins you are using in your project or share Assets/Plugins/Android/mainTemplate.gradle file

covert pulsar
#

here's the mainTemplate.gradle

apply plugin: 'com.android.library'
**APPLY_PLUGINS**

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
**DEPS**}

android {
    ndkPath "**NDKPATH**"

    compileSdkVersion **APIVERSION**
    buildToolsVersion '**BUILDTOOLS**'

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_11
        targetCompatibility JavaVersion.VERSION_11
    }

    defaultConfig {
        minSdkVersion **MINSDKVERSION**
        targetSdkVersion **TARGETSDKVERSION**
        ndk {
            abiFilters **ABIFILTERS**
        }
        versionCode **VERSIONCODE**
        versionName '**VERSIONNAME**'
        consumerProguardFiles 'proguard-unity.txt'**USER_PROGUARD**
    }

    lintOptions {
        abortOnError false
    }

    aaptOptions {
        noCompress = **BUILTIN_NOCOMPRESS** + unityStreamingAssets.tokenize(', ')
        ignoreAssetsPattern = "!.svn:!.git:!.ds_store:!*.scc:!CVS:!thumbs.db:!picasa.ini:!*~"
    }**PACKAGING_OPTIONS**
}
**IL_CPP_BUILD_SETUP**
**SOURCE_BUILD_SETUP**
**EXTERNAL_SOURCES**
rain hazel
#

Did you run force resolve?

#

Can you pls share screenshot of Assets/Plugins/Android folder?

covert pulsar
#

yes the error comes from running force resolve

#

here's the screenshot

rain hazel
#

delete all these files (aar files) and open External Dependency Manager settings (top menu bar -> Assets -> EDMU -> Android Settings).
Make sure you have Patch Main template gradle option enabled and click on ok
Force resolve now!

covert pulsar