A anaylor01 Well-Known Member Licensed User Longtime User Aug 8, 2015 #1 I get the error from the manifest can't find Activity. I am not sure what is going on. Attachments myapp.zip myapp.zip 13.1 KB · Views: 269
EnriqueGonzalez Expert Licensed User Longtime User Aug 8, 2015 #2 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
this is the line giving you troubles Code: Copy SetActivityAttribute(Activity, android:theme, @style/Theme.Transparent) the activity is not Activity but Main
A anaylor01 Well-Known Member Licensed User Longtime User Aug 8, 2015 #3 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
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'.
DonManfred Expert Licensed User Longtime User Aug 8, 2015 #4 anaylor01 said: But now I am getting this error. Click to expand... but not with the code you posted in #1. After changing the manifest I dont get an error when compiling Upvote 0
anaylor01 said: But now I am getting this error. Click to expand... but not with the code you posted in #1. After changing the manifest I dont get an error when compiling
A anaylor01 Well-Known Member Licensed User Longtime User Aug 9, 2015 #5 Can someone PLEASE help. I can't get anything to work. Attachments Error.PNG 13.4 KB · Views: 394 Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Aug 9, 2015 #6 Oh. Here is my code. Attachments myapp.zip myapp.zip 13.1 KB · Views: 288 Upvote 0
EnriqueGonzalez Expert Licensed User Longtime User Aug 9, 2015 #7 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
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.
A anaylor01 Well-Known Member Licensed User Longtime User Aug 9, 2015 #8 delete all the xml files in the res folder? Upvote 0
EnriqueGonzalez Expert Licensed User Longtime User Aug 9, 2015 #9 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
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)
A anaylor01 Well-Known Member Licensed User Longtime User Aug 9, 2015 #10 Ok I deleted all xml files in the res\values folder but I get the same error. Upvote 0
EnriqueGonzalez Expert Licensed User Longtime User Aug 9, 2015 #11 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
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.
EnriqueGonzalez Expert Licensed User Longtime User Aug 9, 2015 #12 and do not forget to write: activity.loadlayout("newGameLayout") Upvote 0
EnriqueGonzalez Expert Licensed User Longtime User Aug 9, 2015 #14 sorry mate i do not get any more errors here at my side, here is your app. Attachments ThinkFast3.zip ThinkFast3.zip 7.6 KB · Views: 270 Upvote 0
A anaylor01 Well-Known Member Licensed User Longtime User Aug 9, 2015 #15 What version of B4A are you using? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Aug 9, 2015 #17 Make sure to use android.jar from platform 14+ (under Tools - Configure Paths). Upvote 0