Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
08/20/17 10:33 PM (2 years ago)

PDF Plugin Android

I am using the PDF Plugin of David. I works fine in iOS. When trying to run it in Android Studio I get the following error:

Error:Execution failed for task ':app:mergeDebugResources'.
> /Users/tyronerichards/Desktop/ecconsultantsnew1_Android_BTv4/app/src/main/res/drawable/appacs.pdf: Error: The file name must end with .xml or .png

My pdf docs use file extension .pdf. Does this mean that I have to change them all to .png or .xml?
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1118
Reg: Aug 07, 2013
blackpool
13,980
like
08/21/17 02:24 AM (2 years ago)
pdf files go in the assets folder not drawable, just thought, would have thought it would go to that folder anyway, instead of searching in drawable.
Thanks
Sean
 
Tyroner
Aspiring developer
Profile
Posts: 175
Reg: Dec 26, 2012
Johannesburg, S...
4,200
like
08/21/17 04:12 PM (2 years ago)
Thank you Sean! Project now running!
 
FunkyMonkey
Aspiring developer
Profile
Posts: 1118
Reg: Aug 07, 2013
blackpool
13,980
like
08/22/17 10:02 AM (2 years ago)
no probs, glad its working
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.