BlinkID / blinkid-android

Everything you need to add AI-driven ID scanning into your native Android app.
https://microblink.com/identity/identity-document-scanning/
438 stars 153 forks source link

cordova build android fails #263

Closed francislagares closed 1 year ago

francislagares commented 2 years ago

Description

After upgrading to v5.15.0 cannot generate apk.

  1. cordova prepare android
  2. cordova build android

Throws me:

Task :app:processDebugResources FAILED

FAILURE: Build failed with an exception.

Environment Details

**BlinkID version: 5.15.0

**Device model: Android

**NodeJS: v16.30.0

**NPM: 8.3.0

mparadina commented 2 years ago

Hi @francislagares

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.

premedios-i9 commented 2 years ago

@francislagares install android with the following command:

cordova platform add android@10

with that, you get no errors on build. problem solved.

krizaa commented 1 year ago

This issue was closed because it has been inactive for such a long time. If the issue persists, please open a new one.