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

Android resources not copied correctly when specified in config.xml

    XMLWordPrintableJSON

Details

    Description

      Android resources are not copied correctly when specified in config.xml

      Info:
      I have created a basic app to illustrate the issue, if you clone the following URL and follow the instructions below, you will see: https://github.com/kelvindart/CordovaAndroidResources

      Issue:
      Running `cordova prepare` or `cordova build` does not seem to move the specified resources correctly, and removes them to the root of the project, not within the android project.

      Expecting:
      `resources` to be merged in `platforms/android/res/` after running one of the above two commands.

      Steps to reproduce:

      1. Clone the following Git repo: https://github.com/kelvindart/CordovaAndroidResources
      2. Run `cordova prepare`.
      3. Observe a newly created folder in `./` named `res` - inside here are android folders for the various screen sizes, containing your resources specified in `config.xml`
      4. Further note, in `./platforms/android/res/` the old resources are still present.

      (N.b. I am unable to add the relevant cordova-android@6.0.0 tags.)

      Attachments

        Issue Links

          Activity

            People

              jcesarmobile jcesarmobile
              keldar Kelvin Dart
              Votes:
              1 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: