Android Question Help error in Manifest

anaylor01

Well-Known Member
Licensed User
Longtime User
I get the error from the manifest can't find Activity. I am not sure what is going on.
 

Attachments

this is the line giving you troubles

Code: Copy
SetActivityAttribute(Activity, android:theme, @style/Theme.Transparent)

the activity is not Activity but Main
 
Upvote 0
Thanks. But now I am getting this error.
res\values\styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Holo.Light'.
res\values\styles.xml:7: error: Error: No resource found that matches the given name: attr 'android:colorBackgroundCacheHint'.
 
Upvote 0
But now I am getting this error.
but not with the code you posted in #1. After changing the manifest I dont get an error when compiling
 
Upvote 0
your app is empty, even the layout is empty.

When you add XML to the Res folder everything needs to be consumed, in your code or in your manifest, if not it will fail, Delete them and you are set to go.
 
Upvote 0
in objects/res/values to be specific. You do not need them at least in the beginning, The OS will automatically assign the most recent (for the OS)
 
Upvote 0
ok replace this line:
SetActivityAttribute(Main, android:theme, @style/Theme.Transparent) with SetApplicationAttribute(android:theme, "@android:style/Theme.Holo")

because you no longer require to set the activity a special style, not for now.
 
Upvote 0
Back
Top