Hello, I'm currently trying to upgrade the radaee library on our old android project.
I've replaced the ViewLib source code using your latest version (3.11).
The project run well, until we tried to open any pdf file.
The app would crash generating this Fatal Exception :
E/AndroidRuntime: FATAL EXCEPTION: Thread-1712
Process: com.old.project, PID: 12929
java.lang.NoSuchMethodError: No virtual method RenderPrePare(Lcom/radaee/pdf/DIB;)V in class Lcom/radaee/pdf/Page; or its super classes (declaration of 'com.radaee.pdf.Page' appears in /data/data/com.old.project/files/instant-run/dex/slice-slice_9-classes.dex)
Please advise on how to fix the problem.
Or is there any steps i'm missing when upgrading the library?
Thankyou for your quick response. I'm upgrading from :
* @author Radaee
* @version 1.1
(from the global.java file)
As I'm not the original developer, and sadly the project documentation is not very helpfull, i cant be certain how much we modified your code. Here I'm assuming by "modifying classes from your framework" means we've modified any code on the ViewLib project. I'm going to check wheter we did modify any code on ViewLib project by comparing the git branches history.
To get to this point, what i did was just create new branch from our latest git code, and replace the code on ViewLib using version 3.11 and then put the professional licence information on Global.java.. hoping that it all will work out of the box. Apparently that is not the case here.
I've also traced the code to find where this method RenderPrePare is called, apparently the chronolgy (from logcat) was this :
The app call private boolean openDocument(Bundle savedInstanceState, String docPath)
<here we do some decrypt method to get the correct password (pass) to open the encrypted pdf>
Then it goes to : int ret = m_doc.Open(docPath, pass);
Because ret == 0 (success) we go to this code :
m_vPDF = new ReaderController(this) where reader controller is : public class ReaderController extends View implements PDFView.PDFViewListener
and then we define some @Override
the one method where the Fatal Exception occur was @Overide : public void OnPDFPageDisplayed(Canvas canvas, PDFVPage vpage)
where because we detect that the pdf isFirstOpen(had no bookmark), we call : m_vPDF.goToPageIndex(lastIndex); where lastIndex == -1
then the Fatal Exception No virtual method RenderPrePare happens.
Please help us on this problem. Do you have any suggestion on what to do?