I've finished the first round of rewrites, but now I can't run the project because of this error "Multiple dex files define Lcome/radaee/view/PDFLayout$1."
I'm guessing this is because I had tried adding the jar file directly to my project, then I took it out and added ViewLib as a module instead. But I can't find any trace of the jar now except in the ViewLib module. It's not in the app module's libs directory, and it's not referenced in my build settings. I've also removed all the Radaee source files from my app module, so they are only in the ViewLib module. I've cleaned the project using Android Studio's Clean function, as well as manually deleting the build intermediates and cache files.
Curiously, if I do Build > Rebuild Project, it builds with no errors. But if I do Run > Run or Run > Debug, I get these errors every time.
Do you have any more tips for me? I feel like I'm getting close, but still stuck.
UPDATE: I just tried adding the ViewLib module to a second project, where I had never added the jar file before, and I'm getting the same error message there. So I guess it's not caused by my previous upgrade attempt. Also, the duplicate class shown in the error is PDFLayout, which isn't included in the old 2.x version, so it's not a conflict with older Radaee files. I'm just not getting this new version installed correctly for some reason. As in the first project, the Build command works but the Run command stops with the dex error.