Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70435

Failing to add android platform

$
0
0

@bradbeatson wrote:

Hi, I’m trying to add android to an existing Ionic project but I keep coming across this AndroidManifest.xml issue…

Here’s the output of ionic cordova platform add android:

monetse brad$ ionic cordova platform add android
> cordova platform add android --save
Using cordova-fetch for cordova-android@~7.0.0

Adding android project...

Creating Cordova project for the Android platform:

	Path: platforms/android
	Package: /
	Name: Monetse
	Activity: MainActivity
	Android target: android-26
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.0.0
Android Studio project detected
Android Studio project detected
Installing "cordova-clipboard" for android

Installing "cordova-plugin-camera" for android

Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-cszbar" for android
Subproject Path: CordovaLib
Subproject Path: app
Installing "cordova-plugin-device" for android
Failed to install 'cordova-plugin-device': Error: ENOENT: no such file or directory, open '/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:646:18)
    at Object.fs.readFileSync (fs.js:551:33)
    at Object.parseElementtreeSync (/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/cordova/Api.js:223:57)
    at handleInstall (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:594:10)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/plugman/install.js:357:28
    at _fulfilled (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:787:54)
    at self.promiseDispatch.done (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:816:30)

(node:33196) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: ENOENT: no such file or directory, open '/Users/brad/Documents/Development/Personal/Ionic/monetse/platforms/android/AndroidManifest.xml'
(node:33196) [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.

> ionic cordova resources android --force
✔ Collecting resource configuration and source images - done!
✔ Filtering out image resources that do not need regeneration - done!
✔ Uploading source images to prepare for transformations - done!
✔ Generating platform resources: 18 / 18 complete - done!
✔ Modifying config.xml to add new image resources - done!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70435

Trending Articles



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