I’m making an app which can decode barcode, and qr code.
so I made an android studio project with C++ compiler.
[my build.gradle file is this]
buildscript {
repositories {
google()
jcenter()
maven {
url “https://maven.google.com”
}
}
dependencies {
classpath “com.android.tools.build:gradle:4.0.1”
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
maven {
url “https://maven.google.com”
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
[build.gradle for module level is like this]
dependencies {
implementation ‘com.microsoft.onnxruntime:onnxruntime-mobile:1.9.0’
implementation ‘androidx.appcompat:appcompat:1.3.1’
implementation ‘androidx.constraintlayout:constraintlayout:2.1.2’
implementation project(path: ‘:sdk’)
testImplementation ‘junit:junit:4.12’
androidTestImplementation ‘androidx.test.ext:junit:1.1.3’
androidTestImplementation ‘androidx.test.espresso:espresso-core:3.4.0’
implementation fileTree(dir: “libs”, include: [“*.jar”])
}
[gradle.properties file is like this]
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https://services.gradle.org/distributions/gradle-6.1.1-all.zip
but I got an error below.
Could not resolve all artifacts for configuration ‘:classpath’.
Could not resolve org.jetbrains.kotlin:kotlin-stdlib-jdk8:1.3.72.
I use jdk1.8 and set jdk to it.
why this happen? how can i solve this?