Closed nikolaof closed 1 year ago
Hi @nikolaof
This sounds very similar to https://github.com/don/cordova-plugin-ble-central/issues/957
I've raised https://github.com/don/cordova-plugin-ble-central/pull/978 to add the missing dependency, but I suspect you'll run into a permissions issue next like this:
ERROR:/home/runner/work/cordova-plugin-ble-central/cordova-plugin-ble-central/temp/android/app/build/intermediates/packaged_manifests/debug/AndroidManifest.xml:26: AAPT: error: attribute android:usesPermissionFlags not found.
What version of cordova-android
are you using in your project there?
I'm using cordova-android
in 9.1.0
So I added the <framework src="androidx.annotation:annotation:*"/>
line manually in the plugin.xml as mentioned in #978.
Then tried to rebuild and I got this error back:
* What went wrong:
Execution failed for task ':app:mergeDebugResources'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find androidx.annotation:annotation:*.
Searched in the following locations:
- https://repo.maven.apache.org/maven2/androidx/annotation/annotation/*/annotation-*.pom
- https://dl.google.com/dl/android/maven2/androidx/annotation/annotation/*/annotation-*.pom
- https://jcenter.bintray.com/androidx/annotation/annotation/*/annotation-*.pom
- file:/home/user/dev/ionic-app-demo/platforms/android/app/libs/annotation-*.jar
- file:/home/user/dev/ionic-app-demo/platforms/android/app/libs/annotation.jar
Required by:
project :app
EDIT:
From a search I did, is seems that all the links it tries to fetch it arel not working. :/ How can this be the case?
EDIT 2:
So after updating into cordova-android 12.0.0, and JDK 11 the app get's compiled.
Hello.
I'm trying to build an ionic project that uses this plugin and 4 months earlier I was able to build it but no more.
More specifically here is what I'm getting:
The environment of mine is quite old but I'm not sure if that's the issue.
In Ionic's config file I have set
<preference name="android-targetSdkVersion" value="31" />
Plugin's version: 1.7.0