Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 229350

Local build fails after adding fingeprint-aio plugin

$
0
0

Hi guys,

I had this problem when adding fingeprint-aio plugin to real app but below is the simplest scenario.

Create new blank ionic app:

ionic start blank blank
cd blank
ionic cordova platform add android
ionic serve -c					-	works
ionic cordova build android		-	works

then add https://ionicframework.com/docs/native/fingerprint-aio/ plugin:

ionic cordova plugin add cordova-plugin-fingerprint-aio
npm install --save @ionic-native/fingerprint-aio

then run the same commands even without using fingerprint-aio in a app code

ionic serve -c					-	works
ionic cordova build android		-	does not works

I got error from build command which looks like that:

cp: copyFileSync: could not write to dest file (code=ENOENT):C:\gregr\ionic\pansw\blank\platforms\android\res\xml\config.xml

Parsing C:\gregr\ionic\pansw\blank\platforms\android\res\xml\config.xml failed
(node:21108) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1):
Error: ENOENT: no such file or directory, open ‘C:\gregr\ionic\pansw\blank\platforms\android\res\xml\config.xml’
(node:21108) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

Note that there is no even xml folder in \blank\platforms\android\res\ directory in my project. If I copy xml directory from \blank\platforms\android\app\src\main\res to \blank\platforms\android\res\ and try to build project I get similar error about other missing file: \blank\platforms\android\res\values\string.xml and so one.

Is it a way to make that plugin working? I believe that I have latest (or very recent) versions of ionic and Android SDK.


Viewing all articles
Browse latest Browse all 229350

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>