This week's giveaway is in the Beginning Java forum.
We're giving away four copies of Bad Programming Practices 101 (e-book) and have Karl Beecher on-line!
See this thread for details.
Win a copy of Bad Programming Practices 101 (e-book) this week in the Beginning Java forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

R.java not recreated if in res/raw is mp3  RSS feed

 
Ranch Hand
Posts: 96
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have Eclipse and ADT. I create folder raw inside folder res. I add there file loop-searched.mp3 (should be xml?) R.java not changes; if I delete R.java, it not recreated.
----
I solved it! Filename loop-searched.mp3 contains illegal char "-". I change it to "_". Filename must contains only letters and digits such to could be a identifier.
 
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done solving it yourself! And thanks for sharing the solution!
Have a cow! Moo!
 
machines help you to do more, but experience less. Experience this tiny ad:
Why should you try IntelliJ IDEA ?
https://coderanch.com/wiki/696337/IntelliJ-IDEA
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!