You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Olivier Goguel (JIRA)" <ji...@apache.org> on 2015/10/05 19:19:26 UTC

[jira] [Created] (CB-9747) Android parser fails if the activity class has been redefined (using android:name)

Olivier Goguel created CB-9747:
----------------------------------

             Summary: Android parser fails if the activity class has been redefined (using android:name)
                 Key: CB-9747
                 URL: https://issues.apache.org/jira/browse/CB-9747
             Project: Apache Cordova
          Issue Type: Bug
          Components: CordovaLib
    Affects Versions: 5.3.2
         Environment: Android
            Reporter: Olivier Goguel


If the name of the class that implements the activity has been modified to include a full package name, the android parser fails as it still expects to find the Activity class under the package name defined in the manifest

Ex:
<manifest package="com.myapp" ...>
<activity android:name="MainActivity"> ====> OK, as the parser is searching the java file under com/myapp

However:

<activity android:name="net.del7a.MyActivity"> ====> KO, as the parser is still searching the java file under com/myapp instead of net/del7a

Error: ENOENT, no such file or directory '/Users/olivier/Code/POM/cordova/platforms/android/src/com/myapp'

    at Object.fs.readdirSync (fs.js:654:18)

    at android_parser.update_from_config (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:266:25)

    at android_parser.update_project (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/metadata/android_parser.js:335:14)





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org