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

  • myapp.zip
    13.1 KB · Views: 117

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
this is the line giving you troubles

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

the activity is not Activity but Main
 
Upvote 0

anaylor01

Well-Known Member
Licensed User
Longtime User
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

DonManfred

Expert
Licensed User
Longtime User
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

anaylor01

Well-Known Member
Licensed User
Longtime User
Can someone PLEASE help. I can't get anything to work.
 

Attachments

  • Error.PNG
    Error.PNG
    13.4 KB · Views: 158
Upvote 0

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
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

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
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

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
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

EnriqueGonzalez

Well-Known Member
Licensed User
Longtime User
sorry mate i do not get any more errors here at my side, here is your app.
 

Attachments

  • ThinkFast3.zip
    7.6 KB · Views: 122
Upvote 0
Top