Skip to content
This repository has been archived by the owner on Dec 11, 2023. It is now read-only.

ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform chromium-aw-release.aar to match attributes {artifactType=jar}. #7

Open
tstr007 opened this issue May 28, 2021 · 6 comments

Comments

@tstr007
Copy link

tstr007 commented May 28, 2021

Hello, Thanks for making this lib.
I do get these errors whenever trying to add lib to project using local .aar or remotely, using my own project or the demo, using latest version or older ones below 86.x.x . this issue appears in debug and release builds.
ERROR: Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Failed to transform chromium-aw-release.aar to match attributes {artifactType=jar}.
ERROR: Unable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Failed to transform chromium-aw-release.aar to match attributes {artifactType=jar}.
ERROR: Unable to resolve dependency for ':app@debug/compileClasspath': Failed to transform chromium-aw-release.aar to match attributes {artifactType=jar}.

@DavinAhn
Copy link
Contributor

@tstr007 It seems that chromium-aw-release.aar did not download properly.
Please check if the download is successful and if the problem persists, please write a test environment(gradle version, android studio version, java version, ...).

@tstr007
Copy link
Author

tstr007 commented May 30, 2021

I've tried to

  • add .aar locally by adding it to libs folder after successfully downloading it.
  • build the demo project.
  • add 81.0.4044.156-5 to project.
    unfortunately issue persists
    Android studio v3.6.4
    Gradle version 6.5.1
    JavaVersion.VERSION_1_8

@DavinAhn
Copy link
Contributor

The demo project was tested in the Android Studio 4.1 environment, and I suspect this may be a problem caused by this difference.

@tstr007
Copy link
Author

tstr007 commented May 31, 2021

updated to latest android studio version 4.2 .
Another error appears when trying to add latest release or older below 86.x.x
Null extracted folder for artifact: ResolvedArtifact(componentIdentifier=com.github.ridi:chromium-aw:81.0.4044.156-5, variantName=null, artifactFile={gradle cache file location}\chromium-aw-81.0.4044.156-5.aar, extractedFolder=null, dependencyType=ANDROID, isWrappedModule=falsemavenCoordinatesCache=com.android.build.gradle.internal.ide.dependencies.MavenCoordinatesCacheBuildService$Inject@13cea94)

@DavinAhn
Copy link
Contributor

DavinAhn commented Jun 1, 2021

Hmm...
Please show me your build.gradle config.

@tstr007
Copy link
Author

tstr007 commented Jun 1, 2021

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'
apply plugin: 'kotlin-android-extensions'

android {
compileSdkVersion 30
buildToolsVersion "30.0.3"

defaultConfig {
    applicationId "me.app.ridichrome"
    minSdkVersion 19
    targetSdkVersion 30
    versionCode 1
    versionName "1.0"

    multiDexEnabled true
    testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}



   aaptOptions {
    noCompress  'dat', 'pak'
}


splits {
abi {
  enable true
  reset() // clear from 'all ABIs' to 'none'
  include 'armeabi', 'armeabi-v7a', 'arm64-v8a', 'x86', 'x86_64'
  universalApk true //make a universal APK along with ABI specific apks
}

}

buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
      
    }

   
}



 compileOptions {
    sourceCompatibility JavaVersion.VERSION_1_8
    targetCompatibility JavaVersion.VERSION_1_8
}

}

dependencies {
implementation fileTree(dir: 'libs', include: ['.jar', '.aar'])
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.3.0-alpha02'
implementation 'androidx.core:core-ktx:1.3.2'
implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.2'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
implementation "androidx.multidex:multidex:2.0.1"
implementation "androidx.webkit:webkit:1.4.0"
implementation 'com.github.ridi:chromium-aw:81.0.4044.156-5'
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants