You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Gary N Griswold (JIRA)" <ji...@apache.org> on 2017/12/28 02:01:06 UTC
[jira] [Created] (CB-13716) AndroidStudio.js incorrectly decides
project is Eclipse project
Gary N Griswold created CB-13716:
------------------------------------
Summary: AndroidStudio.js incorrectly decides project is Eclipse project
Key: CB-13716
URL: https://issues.apache.org/jira/browse/CB-13716
Project: Apache Cordova
Issue Type: Bug
Components: cordova-android
Affects Versions: cordova-android-7.0.0
Environment: Mac osx 10.13.2
Reporter: Gary N Griswold
Assignee: Joe Bowser
Priority: Critical
Fix For: Master
Attachments: AndroidStudio.js
cordova add plugin fails on the error below, because it cannot find AndroidManifest.xml. I think the problem is caused by cordova/lib/AndroidStudio.js. It is using the presence of directories: libs and res to determine if a project is an Eclipse project. The problem is that one of the plugins I use does create these directories. So, any plugin added after the Eclipse created plugin causes this logic to think that all subsequent plugins are Eclipse plugins.
cordova plugin add $HOME/ShortSands/BibleApp/Plugins/PKZip --nofetch
Installing "com-shortsands-pkzip" for android
Failed to install 'com-shortsands-pkzip': Error: ENOENT: no such file or directory, open '/Users/garygriswold/ShortSands/BibleApp/YourBible/platforms/android/AndroidManifest.xml'
at Error (native)
at Object.fs.openSync (fs.js:640:18)
at Object.fs.readFileSync (fs.js:508:33)
at Object.parseElementtreeSync (/Users/garygriswold/ShortSands/BibleApp/YourBible/platforms/android/cordova/node_modules/cordova-common/src/util/xml-helpers.js:180:27)
at new AndroidManifest (/Users/garygriswold/ShortSands/BibleApp/YourBible/platforms/android/cordova/lib/AndroidManifest.js:29:20)
at AndroidProject.getPackageName (/Users/garygriswold/ShortSands/BibleApp/YourBible/platforms/android/cordova/lib/AndroidProject.js:99:12)
at Api.addPlugin (/Users/garygriswold/ShortSands/BibleApp/YourBible/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/q/q.js:787:54)
Error: ENOENT: no such file or directory, open '/Users/garygriswold/ShortSands/BibleApp/YourBible/platforms/android/AndroidManifest.xml'
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org