Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-13031

config.xml: android-packageName case-sensitivity

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 7.0.1
    • Fix Version/s: None
    • Component/s: cordova-android
    • Labels:

      Description

      In config.xml, setting android-packageName to a value that only differs from id in capitalization causes an error with platform add android .

      Example:
      cordova create testapp com.example.testapp testapp
      cd testapp
      (edit config.xml, add android-packageName="com.example.Testapp" to <widget>)
      cordova platform add android

      Output:
      Using cordova-fetch for cordova-android@~6.2.2
      Adding android project...
      Creating Cordova project for the Android platform:
      Path: platforms/android
      Package: com.example.testapp
      Name: testapp
      Activity: MainActivity
      Android target: android-25
      Subproject Path: CordovaLib
      Android project created with cordova-android@6.2.3
      Discovered plugin "cordova-plugin-whitelist" in config.xml. Adding it to the project
      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.

      Adding cordova-plugin-whitelist to package.json
      Saved plugin info for "cordova-plugin-whitelist" to config.xml
      ls: no such file or directory: /Users/ronald987/dev/apps/testapp/platforms/android/src/com/example/Testapp/*.java

      Error: No Java files found that extend CordovaActivity.
      </output>

      The directory and the .java indeed don't exist. In platforms/android/src there's only an org directory.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Nikita Matrosov Nikita Matrosov
                Reporter:
                Ronald987 Ronald Klip
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: