1. Introducing Channels - a new way to chat with other Android users!
    Dismiss Notice

assets error


Last Updated:

  1. olijf

    olijf Member This Topic's Starter

    Joined:
    Sep 23, 2012
    Messages:
    19
    Likes Received:
    0
    i've been getting the following error:


    invalid resource directory name assets /Money Converter/res line 1 Android AAPT Problem

    when i navigate to the res > assets folder. it says it's empty. odd to me because the problems tab tells me there is the problem.

    thanks for reading, even more thanks if got a solution. if need more info, just let me know.
     

    Attached Files:


    Advertisement
  2. cr5315

    cr5315 Well-Known Member Developer

    Joined:
    Jul 23, 2010
    Messages:
    435
    Likes Received:
    158
    The assets folder doesn't go in res. It goes in the same folder that res is in.
     
    olijf likes this.
  3. olijf

    olijf Member This Topic's Starter

    Joined:
    Sep 23, 2012
    Messages:
    19
    Likes Received:
    0
    ok but this still didnt help me fixing it yet.
     
  4. cr5315

    cr5315 Well-Known Member Developer

    Joined:
    Jul 23, 2010
    Messages:
    435
    Likes Received:
    158
    Your problem is that R.java isn't building. R.java doesn't build when there's an error in your res folder, which in this case is the presence of assets.
     
    olijf likes this.
  5. olijf

    olijf Member This Topic's Starter

    Joined:
    Sep 23, 2012
    Messages:
    19
    Likes Received:
    0
    i decided to delete the project completely ( wasn't a big deal, small script and it was a good test for me about how much i knew of rebuilding it). after rebuild the app didn't error anymore.
    - i went deeper into the naming of elements. this might have been the problem, we will never know :D.

    thx for helping :D
     

Share This Page

Loading...