Please give a brief summary of your issue:
Compilation error after integrating PDFTron SDK.
Please describe your issue and provide steps to reproduce it:
Repro steps:
Setup the gradle files with PDFTron dependencies and private repo
Build or hit Run in Android Studio
Result: Get these errors:
values.xml. Cause: java.lang.IllegalStateException: Can not add resource (com.android.aaptcompiler.ParsedResource@50082638) to table.). Check logs for more details.
Failed to compile values resource file /Users/seth/Projects/canopy/mobile/android/canopy/app/build/intermediates/incremental/clientDebug/mergeClientDebugResources/merged.dir/values/values.xml
Caused by: java.lang.IllegalStateException: Can not add resource (com.android.aaptcompiler.ParsedResource@50082638) to table.
While you wait for one of our customer support representatives to get back to you, please check out some of these documentation pages:
Guides:
<a href=âhttps://www.pdftron.com/documentation/core/info/prerequisites/windows#âprerequisites-for-cross-platform-(core)-pdf-library-with-windowsââ>Prerequisites - "Prerequisites for Cross-Platform (Core) PDF library with Windows"
We have found the solution to the issue you were having.
It appears that Material 1.5.0 added in a resource called dividerThickness and in your project you also define your own resource called dividerThickness.
If you remove the your dividerThickness attribute from attrs.xml and itâs references, the project library will compile and run even with material:1.5.0
This error usually occurs whenever You are using some special character in your native files especially if you are using ! or â directly then you will face this type of error. You have to use a backslash while you are using it ! or â
' #â Dont use this
\' #â this is Right
Or You are using ! then
! #â Dont use this
\! #â this is Right
And now your error will be solved. You can Read More about this error at here.