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

Error on prepare when Orientation is configured

    XMLWordPrintableJSON

Details

    Description

      After creating an empty cordova project (cordova create bacon com.bacon Bacon), running cordova platform add android, and adding

      <preference name="orientation" value="landscape" />
      

      and then running cordova prepare, the following error is shown among the output.

      [ReferenceError: a is not defined]
      

      As a second side effect, bigger than just a logged error, the orientation preference isn't working as expected: the android:screenOrientation isn't set according to what's in the config.xml (it isn't set at all, by the way).

      PS: I've checked case sensitivity, and I've checked all possible values [default, landscape, portrait].

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kikoalemao Frederico Costa Galvão
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: