Closed eduboxgithub closed 3 years ago
You did not follow the Setup Steps for background-fetch.
Sorry, for your wasted time... :(
Somehow I forgot/replace one of the maven repo declarations.
Changed to:
... and it's working! Thank you.
Hi there I have same issue using flutter_background_service,in the pub dev there is no thing guied me to config my project and here is my errors please help me I need backgroud service witch can provide me an secounds handleer to fire function `FAILURE: Build failed with an exception.
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://repo.maven.apache.org/maven2/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- file:/home/abolfazl/Desktop/projects/tracker/android/app/libs/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tsbackgroundfetch/maven-metadata.xml Required by: project :app > project :background_fetch Could not find any matches for com.transistorsoft:tslocationmanager:+ as no versions of com.transistorsoft:tslocationmanager are available. Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/transistorsoft/tslocationmanager/maven-metadata.xml
- https://repo.maven.apache.org/maven2/com/transistorsoft/tslocationmanager/maven-metadata.xml
- https://storage.googleapis.com/download.flutter.io/com/transistorsoft/tslocationmanager/maven-metadata.xml
- file:/home/abolfazl/Desktop/projects/tracker/android/app/libs/com/transistorsoft/tslocationmanager/maven-metadata.xml
- https://jcenter.bintray.com/com/transistorsoft/tslocationmanager/maven-metadata.xml Required by: project :app > project :flutter_background_geolocation `
Post your android/build.gradle
Same error here. Here you are the build.gradle content:
buildscript {
ext.kotlin_version = '1.6.10'
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
rootProject.buildDir = '../build'
subprojects {
project.buildDir = "${rootProject.buildDir}/${project.name}"
}
subprojects {
project.evaluationDependsOn(':app')
}
task clean(type: Delete) {
delete rootProject.buildDir
}
You did not follow the required Setup Instructions linked in the readme.
it has to be in allprojects {} not buildscript, you need to scroll down a bit further. Not sure why they duplicate this section, very stupid.
Your Environment
Expected Behavior
Install the plugin and after the plugin setup, be able to run and build de android project.
Actual Behavior
The app shows an error during build time reporting that can't find any matches for com.transistorsoft:tsbackgroundfetch:+
Steps to Reproduce
Install the plugin npm install --save @transistorsoft/capacitor-background-fetch
Add build.gradle config![image](https://user-images.githubusercontent.com/13800439/128203693-487babe4-5c87-44a9-bd1d-b87d6f118299.png)
Add proguard-rules-pro config![image](https://user-images.githubusercontent.com/13800439/128202281-67bd10cc-1826-4a9f-9b73-cf81da91bf7e.png)
Try to build the Capacitor App using Android Studio
Context
I'm migrating my app to Capacitor 3. My app makes use of capacitor-background-geolocation. I was using the cordova version, but I noticed that there's a new Capacitor version, so I'm trying to use the new version.
Already did the migrations steps for the capacitor-background-geolocation and the capacitor-background-fetch, but seems there's an issue. I double checked the setup steps but I'm getting this the error reported above in the logs.
Debug logs