I use latest Android Studio 0.8.4 (for OS X), in "res" directory I create new "database" directory and put there all files what I need and when I try to compile I receive this error.
Error:Content is not allowed in prolog. :app:mergeDebugResources FAILED /Users/filipp/data/Android_dev/project/app/src/main/res/database/5clSubject0Book0.txt Error:Error: Content is not allowed in prolog. Error:Execution failed for task ':app:mergeDebugResources'. > /Users/filipp/data/Android_dev/project/app/src/main/res/database/5clSubject0Book0.txt:0:0: Error: Content is not allowed in prolog. Information:BUILD FAILED
in "res" directory I create new "database" directory
That is not supported. You cannot invent new resource directories.
Please put the files in res/raw/
(and use via getResources().openRawResource()
) or assets/
(and use via getAssets().open()
).
I am having the same problem What I did is,
You need to clear the cache data
Go to Build(Menu)--> Clean Project
Then
Go to Build(Menu)--> Rebuild Project
Then Run Your project
This may also help in refreshing data of android preview
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With