Reputation: 107
Making a program for Android L' using pdfrenderer the issue is
minsdk = 21
ERROR - "emulator-5554 disconnected! Cancelling 'com.example.andro_pdf_two.MainActivity activity launch'!
"java.lang.NoClassDefFoundError: android.graphics.pdf.PdfRenderer
and Call requires API level 21 (current min is 19): android.graphics.pdf.PdfRenderer#openPage
I have done everything as suggested - resetting adb, resetting preferences...but nothing seems to be working can anyone help???
Upvotes: 2
Views: 3351
Reputation: 2032
PDFRenderer assumes minimum API level - 21.
You can use android-pdfview for API level less than 21.
Upvotes: 0
Reputation: 447
Call requires API level 21 (current min is 19): android.graphics.pdf.PdfRenderer#openPage
clearly states that you need a min sdk version of 21 and your app has a current api level of 19
set this in your manifest and try
<uses-sdk android:minSdkVersion="21" />
Upvotes: 1