osimer pothe
osimer pothe

Reputation: 2897

Android studio compile error showing “Content is not allowed in prolog”

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

Answers (1)

user2917054
user2917054

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

Related Questions