Reputation: 2897
I use latest Android Studio 1.3.2 (for OS windows 7), in "asset" directory I put 2 apks and when I try to compile I receive this error.
D:\Work On Android\LocalRepo\CSipSimple-master\app\src\main\res\assets\CSipSimpleCodecPack_1.5.apk
Error:(1, 1) Error: Content is not allowed in prolog.
:app:mergeDebugResources FAILED
Error:Execution failed for task ':app:mergeDebugResources'.
> D:\Work On Android\LocalRepo\CSipSimple-master\app\src\main\res\assets\CSipSimpleCodecPack_1.5.apk:1:1: Error: Content is not allowed in prolog.
How can I solve this error ? Any advice is of great help .
Upvotes: 0
Views: 4007
Reputation:
You cannot invent new resource directories. The issue is that you can't create an assets
folder inside the main\res
folder. You need to move the assets
folder to the main
folder.
Upvotes: 5