You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by "Frederico Costa Galvão (JIRA)" <ji...@apache.org> on 2014/03/13 21:11:45 UTC

[jira] [Created] (CB-6248) Error on prepare when Orientation is configured

Frederico Costa Galvão created CB-6248:
------------------------------------------

             Summary: Error on prepare when Orientation is configured
                 Key: CB-6248
                 URL: https://issues.apache.org/jira/browse/CB-6248
             Project: Apache Cordova
          Issue Type: Bug
          Components: Android, CLI
    Affects Versions: 3.4.0
         Environment: Xubuntu 13.10 x86_64, cordova 3.4.0-0.1.3
            Reporter: Frederico Costa Galvão
            Priority: Minor


After creating an empty cordova project (*cordova create bacon com.bacon Bacon*), running *cordova platform add android*,  and adding 
{code}
<preference name="orientation" value="landscape" />
{code}
and then running *cordova prepare*, the following error is shown among the output.
{code}
[ReferenceError: a is not defined]
{code}

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\].



--
This message was sent by Atlassian JIRA
(v6.2#6252)