英文:
Flutter - Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available
问题
I use the above plugin to execute a task for every 15 minutes even after terminating the app. But after adding the above library, my app throws the error:
- What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://maven.google.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- file:/Users/rsoft/StudioProjects/salezrobot/android/app/libs/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
Required by:
project :app > project :background_fetch
英文:
I use the above plugin to execute a task for every 15 minutes even after terminate the app. But after adding the above library my app throws the error
* What went wrong:
Execution failed for task ':app:checkDebugAarMetadata'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find any matches for com.transistorsoft:tsbackgroundfetch:+ as no versions of com.transistorsoft:tsbackgroundfetch are available.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://maven.google.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- file:/Users/rsoft/StudioProjects/salezrobot/android/app/libs/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
Required by:
project :app > project :background_fetch
答案1
得分: 5
将以下内容添加到 android/build.gradle
中:
maven {
url "${project(':background_fetch').projectDir}/libs"
}
将其添加到 allprojects/repositories
,而不是 buildscript/repositories
。
英文:
add this in android/build.gradle
:
maven {
url "${project(':background_fetch').projectDir}/libs"
}
to allprojects/repositories
, NOT to the buildscript/repositories
答案2
得分: 0
你首先必须按照以下设置指南进行操作:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论