peteblank
(pete blank)
November 15, 2020, 6:16pm
1
Hello everyone. I’m trying to get a project going but first I have to overcome this hurdle.
I have an error:
[quote]Could not determine the dependencies of task ‘:app:compileDebugJavaWithJavac’.
Could not resolve all task dependencies for configuration ‘:app:debugCompileClasspath’.
Could not resolve project :lib.
Required by:
project :app
Unable to find a matching configuration of project :lib:
- None of the consumable configurations have attributes.[/quote]
My build.gradle:app is :
apply plugin: ‘com.android.application’
apply plugin: ‘kotlin-android’
android {
compileSdkVersion 29
defaultConfig {
applicationId “wannabit.io.cosmostaion”
minSdkVersion 23
targetSdkVersion 29
versionCode 78
versionName ‘1.4.10’
testInstrumentationRunner “android.support.test.runner.AndroidJUnitRunner”
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile(‘proguard-android.txt’), ‘proguard-rules.pro’
}
}
signingConfigs {
debug {
storeFile file('debug.keystore')
}
release {
storeFile file('eostartkeystore')
storePassword "dnjsjqlt034#"
keyAlias "key0"
keyPassword "dnjsjqlt034#"
}
}
packagingOptions {
exclude 'lib/x86_64/darwin/libscrypt.dylib'
exclude 'lib/x86_64/freebsd/libscrypt.so'
exclude 'lib/x86_64/linux/libscrypt.so'
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
lintOptions {
checkReleaseBuilds false
abortOnError false
}
buildToolsVersion '29.0.2'
}
dependencies {
implementation project(path: ‘:lib’)
implementation fileTree(include: [‘*.jar’], dir: ‘libs’)
implementation ‘com.android.support:appcompat-v7:28.0.0’
implementation ‘com.android.support:support-v4:28.0.0’
implementation ‘com.android.support:design:28.0.0’
implementation ‘com.android.support.constraint:constraint-layout:2.0.4’
//bitcoin
implementation ‘org.bitcoinj:bitcoinj-core:0.15.8’
//retrofit
implementation ‘com.squareup.retrofit2:retrofit:2.9.0’
implementation ‘com.squareup.retrofit2:converter-gson:2.9.0’
implementation ‘com.squareup.retrofit2:converter-jackson:2.9.0’
//jackson
implementation ‘com.fasterxml.jackson.core:jackson-core:2.11.3’
implementation ‘com.fasterxml.jackson.core:jackson-annotations:2.11.3’
implementation ‘com.fasterxml.jackson.core:jackson-databind:2.11.3’
implementation ‘com.fasterxml.jackson.datatype:jackson-datatype-joda:2.11.3’
//sqliteChiper
implementation ‘net.zetetic:android-database-sqlcipher:3.5.9@aar’
//picasso for images
implementation ‘com.squareup.picasso:picasso:2.71828’
//shimmer
implementation ‘com.romainpiel.shimmer:library:1.4.0@aar’
//for qr code
implementation ‘com.journeyapps:zxing-android-embedded:3.5.0’
//permission check
implementation ‘gun0912.ted:tedpermission:1.0.3’
//circle Image
implementation ‘de.hdodenhof:circleimageview:3.1.0’
//firebase
implementation ‘com.google.firebase:firebase-messaging:21.0.0’
implementation ‘com.google.firebase:firebase-core:18.0.0’
//for qr code
implementation ‘com.journeyapps:zxing-android-embedded:3.5.0’
implementation ‘org.apache.commons:commons-lang3:3.11’
implementation ‘org.jetbrains.kotlin:kotlin-stdlib:1.4.10’
implementation ‘com.squareup.moshi:moshi:1.11.0’
implementation files(‘libs/httpclient-4.5.3.jar’)
implementation files(‘libs/apache-httpcomponents-httpcore.jar’)
//for ed25519
implementation files(‘libs/bip32-ed25519-java-1.0.0-SNAPSHOT.jar’)
implementation ‘net.i2p.crypto:eddsa:0.3.0’
//foreground notification
implementation ‘com.github.shasin89:NotificationBanner:1.1.5’
implementation 'com.google.guava:guava:30.0-jre'
testImplementation 'junit:junit:4.13.1'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}
apply plugin: ‘com.google.gms.google-services’
my build.gradle(cosmos-android) is:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.google.gms:google-services:4.0.1'
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.21"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id “com.gradle.build-scan” version “3.5”
}
gradleEnterprise {
server = “https://gradle-enterprise.mycompany.com ”
}
allprojects {
repositories {
google()
jcenter()
maven { url ‘https://jitpack.io ’ }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = “Gradle Terms of Use | Gradle ”
termsOfServiceAgree = “yes”
}
}
and my settings.gradl is:
Is there any way I can fix this? Please help, thank you.