Phonegap: style change to bare (change in manifest leading to build errors)

I am trying to change the style of an Android theme in Phonegap. I started with things like:

<gap:config-file platform="android" parent="/manifest">
    <activity android:theme="@android:style/Theme.Holo.Light.NoActionBar" />
</gap:config-file>

      

What I read should work, however, that attempts like this were irrelevant as soon as I create the application from the command line.

So instead, I went straight to AndroidManifest.xml and changed android:theme="@android:style/Theme.Black.NoTitleBar"

toandroid:theme="@android:style/Theme.Holo.Light.NoTitleBar"

This, however, leads to build errors ...

BUILD FAILED
D:\Android\android-sdk\tools\ant\build.xml:653: The f
ollowing error occurred while executing this line:
D:\Android\android-sdk\tools\ant\build.xml:698: null
returned: 1

Total time: 1 second
Error code 1 for command: cmd with args: /s,/c,ant,debug,-f,D:\app\platforms\android\build.xml,-Dout.dir=ant-build
,-Dgen.absolute.dir=ant-gen
Error: D:\app\platforms\android\co
rdova\build.bat: Command failed with exit code 2
    at ChildProcess.whenDone (C:\Users\a\AppData\Roaming\npm\node_modules\c
ordova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
    at ChildProcess.emit (events.js:98:17)
    at maybeClose (child_process.js:756:16)
    at Process.ChildProcess._handle.onexit (child_process.js:823:5)

      

What should I do to get this Phonegap app using the holographic theme and not the old gingerbread?

+3


source to share


1 answer


In AndroidManifest.xml you need to change android:theme="@android:style/Theme.Black.NoTitleBar"

toandroid:theme="@android:style/Theme.Holo.Light"



0


source







All Articles