cordova build android fails
francislagares opened this issue · 3 comments
Description
After upgrading to v5.15.0 cannot generate apk.
- cordova prepare android
- cordova build android
Throws me:
Task :app:processDebugResources FAILED
FAILURE: Build failed with an exception.
- What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
Android resource linking failed
/home/user/.gradle/caches/transforms-2/files-2.1/42f4abcd1335f10590e79520ce40d264/core-1.7.0/res/values/values.xml:105:5-114:25: AAPT: error: resource android:attr/lStar not found.
Environment Details
**BlinkID version: 5.15.0
**Device model: Android
**NodeJS: v16.30.0
**NPM: 8.3.0
The mentioned issue could be connected with the targetSdkVersion
You can try placing the target SDK version to 31.
In your Cordova project, you can change this by going to the config.xml
file.
After the line <platform name="android">
, you can add:
<preference name="android-targetSdkVersion" value="31" />
Let me know if this helped.
@francislagares install android with the following command:
cordova platform add android@10
with that, you get no errors on build. problem solved.
This issue was closed because it has been inactive for such a long time. If the issue persists, please open a new one.