Ionic v1 - android - ionic cordova platform add android

FIRST OF ALL ionic info

cli packages: (/usr/local/lib/node_modules)

@ionic/cli-utils  : 1.19.1
ionic (Ionic CLI) : 3.19.1

global packages:

cordova (Cordova CLI) : 8.0.0 

local packages:

Cordova Platforms : android 6.4.0 browser 5.0.3
Ionic Framework   : ionic1 1.3.1

System:

ios-deploy : 1.9.2 
ios-sim    : 6.1.2 
Node       : v9.7.0
npm        : 5.7.1 
OS         : macOS Sierra
Xcode      : Xcode 7.3 Build version 7D175 

Environment Variables:

ANDROID_HOME : not set

Misc:

backend : pro

HI im trying to build a release version for my app, when im trying to create the android platform (ionic cordova platform add android) i see that it only generates inside the res folder three things:

+ app/platforms/android/res/
- drawable-hdpi
- drawable-mdpi
- drawable-xhdpi

And the result in the console is:

:disappointed_relieved:

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: com.ionicframework.conservaapp671674
Name: Conserva.CO
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-plugin-camera" for android
Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.
Installing "cordova-plugin-compat" for android
Dependent plugin "cordova-plugin-compat" already installed on android.
Installing "cordova-plugin-console" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-geolocation" for android
Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Installing "cordova-plugin-image-picker" for android
Installing "cordova-plugin-splashscreen" for android

Failed to install 'cordova-plugin-splashscreen': Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:2108) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:2108) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2108) [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.

SO I CHANGE IT TO:

ionic cordova platform add android@6.4.0 and it CORRECTLY generate the res folder completely, BUT when i try to release a version i got the following error:


ionic cordova platform add android@6.4.0
cordova platform add android@6.4.0 --save
Using cordova-fetch for cordova-android@6.4.0

Adding android project

Creating Cordova project for the Android platform:
	Path: platforms/android
	Package: com.ionicframework.conservaapp671674
	Name: Conserva.CO
	Activity: MainActivity
	Android target: android-26
Subproject Path: CordovaLib
Android project created with cordova-android@6.4.0

Installing "cordova-plugin-camera" for android
Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.
Installing "cordova-plugin-compat" for android
Dependent plugin "cordova-plugin-compat" already installed on android.
Installing "cordova-plugin-console" for android
Installing "cordova-plugin-device" for android
Installing "cordova-plugin-geolocation" for android
Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.
Dependent plugin "cordova-plugin-compat" already installed on android.
Installing "cordova-plugin-image-picker" for android
Installing "cordova-plugin-splashscreen" for android
Installing "cordova-plugin-statusbar" for android
Installing "cordova-plugin-whitelist" for android

This plugin is only applicable for versions of cordova-android greater than 4.0. If you have a previous platform version, you do *not* need this plugin since the whitelist will be built in.

Installing "cordova-sqlite-storage" for android

installing external dependencies via npm
npm install of external dependencies ok
Installing "ionic-plugin-keyboard" for android

Running command: /Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/hooks/after_prepare/010_add_platform_class.js /Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android

save flag or autosave detected

**Saving android@~6.4.0 into config.xml file** 

THEN: ionic cordova build android@6.4.0 --release

[WARN] Not performing Ionic build for project type: ionic1.
> cordova build android@6.4.0 --release
(node:2387) UnhandledPromiseRejectionWarning: Error: The platform "android@6.4.0" does not appear to have been added to this project.
    at Object.getPlatformApi (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/platforms/platforms.js:46:15)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:54:38
    at Array.map (<anonymous>)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:52:47
    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)
    at Promise.promise.promiseDispatch (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:749:13)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:557:44
    at flush (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/node_modules/q/q.js:108:17)
    at process._tickCallback (internal/process/next_tick.js:112:11)
(node:2387) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:2387) [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.

HELP PLEASE!!!

Please edit your post, it is not very readable at the moment.
Use the </> button above the input field to format your code, command line output or error message (select the text first, then click the button or wrap it in ``` manually). Check the preview if it looks better. This will make sure your text is readable and if it recognizes the programming language it also automatically adds code syntax highlighting. Thanks.

ok Thanks, now i think its better!

Remove the android platform and re-add the most recent version (7.1.0). Then try again.

Same Error :frowning:

cordova platform add android@7.1.0 --save
Using cordova-fetch for cordova-android@7.1.0

Adding android project...

Creating Cordova project for the Android platform:

   Path: platforms/android
   Package: com.ionicframework.conservaapp671674

   Name: Conserva.CO
   Activity: MainActivity

   Android target: android-27
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.1.0

Android Studio project detected

Android Studio project detected

Installing "cordova-plugin-camera" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Installing "cordova-plugin-compat" for android

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-console" for android

Installing "cordova-plugin-device" for android

Installing "cordova-plugin-geolocation" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-image-picker" for android

Installing "cordova-plugin-splashscreen" for android

Failed to install 'cordova-plugin-splashscreen': Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
   at Object.fs.openSync (fs.js:667:18)
   at Object.fs.readFileSync (fs.js:572:33)
   at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
   at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
   at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
   at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3040) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
   at Object.fs.openSync (fs.js:667:18)
   at Object.fs.readFileSync (fs.js:572:33)
   at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
   at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
   at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
   at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3040) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3040) [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.


Remove and re-add the plugin that is causing problems. A newer version should be compatible with the current cordova-android version.

  1. Remove android platform
ionic cordova platform rm android
> cordova platform remove android --save
Removing platform android from config.xml file
  1. remove error plugin
cordova plugin remove cordova-plugin-splashscreen
Uninstalling cordova-plugin-splashscreen from browser
js-module uninstall called : plugins/cordova-plugin-splashscreen/www/splashscreen.js
js-module uninstall called : plugins/cordova-plugin-splashscreen/src/browser/SplashScreenProxy.js
Removing "cordova-plugin-splashscreen"
Removing plugin cordova-plugin-splashscreen from config.xml file...
Removing cordova-plugin-splashscreen from package.json

  1. Reinstall plugin
cordova plugin add cordova-plugin-splashscreen
Installing "cordova-plugin-splashscreen" for browser
Adding cordova-plugin-splashscreen to package.json
Saved plugin info for "cordova-plugin-splashscreen" to config.xml
  1. Add Platform with android 7.0.0 :disappointed_relieved: SAME ERROR
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: com.ionicframework.conservaapp671674
	Name: Conserva.CO
	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-plugin-camera" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Installing "cordova-plugin-compat" for android

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-console" for android

Installing "cordova-plugin-device" for android

Installing "cordova-plugin-geolocation" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-image-picker" for android

Installing "cordova-plugin-splashscreen" for android

Failed to install 'cordova-plugin-splashscreen': Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3667) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3667) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3667) [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.

[WARN] Not performing Ionic build for project type: ionic1.
> cordova build android --release
cp: copyFileSync: could not write to dest file (code=ENOENT):/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/res/xml/config.xml

Parsing /Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/res/xml/config.xml failed
(node:3689) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/res/xml/config.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new ConfigParser (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/ConfigParser/ConfigParser.js:30:24)
    at updateConfigFilesFrom (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/prepare.js:106:18)
    at Api.module.exports.prepare (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/prepare.js:42:20)
    at Api.prepare (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/Api.js:192:45)
    at /usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:106:36
    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:3689) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3689) [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.

Im going to try in another computer :frowning:

  1. What is the output of ionic cordova plugin list?
  2. Don’t uninstall the platform - just the plugin.
  3. Cordova Android 7.0.0 is outdated. Use 7.1.0 as I said before.
  1. cordova plugin list
cordova-plugin-camera 2.2.0 "Camera"
cordova-plugin-compat 1.0.0 "Compat"
cordova-plugin-console 1.0.3 "Console"
cordova-plugin-device 1.1.2 "Device"
cordova-plugin-geolocation 2.3.0 "Geolocation"
cordova-plugin-image-picker 1.1.1 "ImagePicker"
cordova-plugin-splashscreen 5.0.2 "Splashscreen"
cordova-plugin-statusbar 2.1.3 "StatusBar"
cordova-plugin-whitelist 1.2.2 "Whitelist"
cordova-sqlite-storage 1.4.8-pre2 "Cordova sqlite storage plugin"
ionic-plugin-keyboard 2.2.1 "Keyboard"
  1. I dont know how to uninstall the platform (Do you mean --> ionic cordova platform rm android?)

  2. ok, im going to try with ionic cordova platform add android@7.1.0 (How can i update the android 7 to 7.1.0?)

  3. add platform 7.1.0, same problem after reinstalling plugin

 cordova platform add android@7.1.0 --save
Using cordova-fetch for cordova-android@7.1.0

Adding android project...

Creating Cordova project for the Android platform:

	Path: platforms/android
	Package: com.ionicframework.conservaapp671674
	Name: Conserva.CO
	Activity: MainActivity
	Android target: android-27
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@7.1.0

Android Studio project detected

Android Studio project detected

Installing "cordova-plugin-camera" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Installing "cordova-plugin-compat" for android

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-console" for android

Installing "cordova-plugin-device" for android

Installing "cordova-plugin-geolocation" for android

Plugin dependency "cordova-plugin-compat@1.0.0" already fetched, using that version.

Dependent plugin "cordova-plugin-compat" already installed on android.

Installing "cordova-plugin-image-picker" for android

Installing "cordova-plugin-splashscreen" for android

Failed to install 'cordova-plugin-splashscreen': Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3902) UnhandledPromiseRejectionWarning: Error: ENOENT: no such file or directory, open '/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/AndroidManifest.xml'
    at Object.fs.openSync (fs.js:667:18)
    at Object.fs.readFileSync (fs.js:572:33)
    at Object.parseElementtreeSync (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
    at new AndroidManifest (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidManifest.js:29:20)
    at AndroidProject.getPackageName (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/platforms/android/cordova/lib/AndroidProject.js:99:12)
    at Api.addPlugin (/Users/Guillermo/Desktop/MITOKONDRIA/_conserva/0_tiendas/conserva-app_2_android/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:3902) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:3902) [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.


Thanks for trying to help me, thanks for your time, i dot know what else to do.

ALSO REMEMBER MY CODE IS ionic V1

This doesn’t matter here as this is all happening on the Cordova level on the command line, Ionic is not involved here at all.

My suggestion: Start a new project with ionic start and try to build it. If it works, add your plugins one by one and see if you can still build (no need to implement the plugins, adding them is enough). If you can add them all, compare the new project to your current project and find the differences.