Ioexception: Non Practise Document. Error

Posted on

When I attain the representative “Display PDF inwards assets folder (inside APK)“, I expression upwards amongst the fault of “java.io.IOException: non attain document. Error”. It should last generated yesteryear the code:

pdfRenderer = novel PdfRenderer(fileDescriptor);

Somebody commented it’s caused yesteryear novel version of Gradle (ref: https://github.com/googlesamples/android-PdfRendererBasic/issues/1), in addition to then I edit dependencies of buildscript inwards build.gradle (Project: …), use gradle:2.1.2 to solve this problem.