Android Question [SOLVED] manifest theme definitions

sorex

Expert
Licensed User
Longtime User
Hello,

I went through the Xui2D examples earlier today.

For some reason I need to delete some theme definitions in the manifest file before it will compile.

Am I missing something on my machine?
 

sorex

Expert
Licensed User
Longtime User
here's the error on the space invaders but these theme lines vary from example to example

B4X:
'full screen theme: https://www.b4x.com/android/forum/threads/full-screen-theme.93892/#content
SetApplicationAttribute(android:theme, "@style/DarkTheme")
CreateResource(values-v20, theme.xml,
<resources>
    <style
        name="DarkTheme" parent="@android:style/Theme.Material.NoActionBar.Fullscreen">
    </style>
</resources>
)
CreateResource(values-v14, theme.xml,
<resources>
    <style
        name="DarkTheme" parent="@android:style/Theme.Holo.NoActionBar.Fullscreen">
    </style>
</resources>)

B4X:
B4A Version: 8.30
Parsing code.    (0.04s)
Compiling code.    (2.11s)
Compiling layouts code.    (0.06s)
Organizing libraries.    (0.06s)
Generating R file.    Error
res\values-v20\theme.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Theme.Material.NoActionBar.Fullscreen'.
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
yeah, it's pointing to API 14 in the sdk folder.

so I should download 21 then?
 
Upvote 0

sorex

Expert
Licensed User
Longtime User
interesting... according to the sdk manager I have API 28 & 29 installed but I don't see the folders under c:\Program Files\Android\android-sdk\platforms\
 
Upvote 0
Top