Android Question Help error in Manifest

Discussion in 'Android Questions' started by anaylor01, Aug 8, 2015.

  1. anaylor01

    anaylor01 Well-Known Member Licensed User

    I get the error from the manifest can't find Activity. I am not sure what is going on.
     

    Attached Files:

  2. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    this is the line giving you troubles

    Code:
    SetActivityAttribute(Activity, android:theme, @style/Theme.Transparent)
    the activity is not Activity but Main
     
  3. anaylor01

    anaylor01 Well-Known Member Licensed 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'.
     
  4. DonManfred

    DonManfred Expert Licensed User

    but not with the code you posted in #1. After changing the manifest I dont get an error when compiling
     
    Peter Simpson likes this.
  5. anaylor01

    anaylor01 Well-Known Member Licensed User

    Can someone PLEASE help. I can't get anything to work.
     

    Attached Files:

  6. anaylor01

    anaylor01 Well-Known Member Licensed User

    Oh. Here is my code.
     

    Attached Files:

  7. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed 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.
     
  8. anaylor01

    anaylor01 Well-Known Member Licensed User

    delete all the xml files in the res folder?
     
  9. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed 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)
     
  10. anaylor01

    anaylor01 Well-Known Member Licensed User

    Ok I deleted all xml files in the res\values folder but I get the same error.
     
  11. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed 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.
     
  12. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    and do not forget to write: activity.loadlayout("newGameLayout")
     
  13. anaylor01

    anaylor01 Well-Known Member Licensed User

    Same error.
     
  14. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

    sorry mate i do not get any more errors here at my side, here is your app.
     

    Attached Files:

  15. anaylor01

    anaylor01 Well-Known Member Licensed User

    What version of B4A are you using?
     
  16. Enrique Gonzalez R

    Enrique Gonzalez R Well-Known Member Licensed User

  17. Erel

    Erel Administrator Staff Member Licensed User

    Make sure to use android.jar from platform 14+ (under Tools - Configure Paths).
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice