springload / cordova-pdfviewer

Cordova PDF downloader and viewer
0 stars 0 forks source link

Compilation errors, corodva version 3.6.x #2

Open tacitus opened 10 years ago

tacitus commented 10 years ago
[javac] Compiling 4 source files to /home/rich/dev/ForsythBarrMobile/platforms/android/ant-build/classes
[javac] /home/rich/dev/ForsythBarrMobile/platforms/android/src/nz/co/springload/pdfviewer/PDFViewer.java:16: error: class PDF is public, should be declared in a file named PDF.java
[javac] public class PDF extends CordovaPlugin
[javac]        ^
[javac] /home/rich/dev/ForsythBarrMobile/platforms/android/src/nz/co/springload/pdfviewer/PDFViewer.java:18: error: cannot find symbol
[javac]     private Downloader activeDownload;
[javac]             ^
[javac]   symbol:   class Downloader
[javac]   location: class PDF
[javac] /home/rich/dev/ForsythBarrMobile/platforms/android/src/nz/co/springload/pdfviewer/PDFViewer.java:43: error: cannot find symbol
[javac]             activeDownload = new Downloader((String)args.get(0), new Downloader.Callback() {
[javac]                                  ^
[javac]   symbol:   class Downloader
[javac]   location: class PDF
[javac] /home/rich/dev/ForsythBarrMobile/platforms/android/src/nz/co/springload/pdfviewer/PDFViewer.java:43: error: package Downloader does not exist
[javac]             activeDownload = new Downloader((String)args.get(0), new Downloader.Callback() {
[javac]                                                                                ^
[javac] 4 errors
tacitus commented 10 years ago

Seems to compile ok now - though still borked. - App will not load?

App loads fins when it's removed? Has anything else changed?

tacitus commented 10 years ago

I/ActivityManager( 1109): Start proc nz.co.forsythbarr.mobileapp for activity nz.co.forsythbarr.mobileapp/.CordovaApp: pid=31238 uid=10160 gids={50160, 3003} E/AndroidRuntime(31238): Process: nz.co.forsythbarr.mobileapp, PID: 31238 E/AndroidRuntime(31238): java.lang.RuntimeException: Unable to start activity ComponentInfo{nz.co.forsythbarr.mobileapp/nz.co.forsythbarr.mobileapp.CordovaApp}: java.lang.NullPointerException E/AndroidRuntime(31238): at nz.co.forsythbarr.mobileapp.CordovaApp.onCreate(CordovaApp.java:33) W/ActivityManager( 1109): Force finishing activity nz.co.forsythbarr.mobileapp/.CordovaApp I/WindowManager( 1109): Screenshot max retries 4 of Token{42f2b978 ActivityRecord{42fd0e50 u0 nz.co.forsythbarr.mobileapp/.CordovaApp t181 f}} appWin=Window{42f20638 u0 Starting nz.co.forsythbarr.mobileapp} drawState=4 W/ActivityManager( 1109): Activity pause timeout for ActivityRecord{42fd0e50 u0 nz.co.forsythbarr.mobileapp/.CordovaApp t181 f} D/SFPerfTracer( 311): layers: (5:14) (DimLayer: 6:434) (DimLayer: 0:45)* (FocusedStackFrame: 0:6099)* (StatusBar: 0:52627) (NavigationBar: 0:60174) (com.android.systemui.ImageWallpaper: 1:10616) (DimLayer: 0:3105)* (DimLayer: 0:2262)* (com.android.launcher/com.android.launcher2.Launcher: 0:84)* (AtchDlg:com.android.launcher/com.android.launcher2.Launcher: 0:18)* (Starting nz.co.forsythbarr.mobileapp: 0:24)* (Application Error: nz.co.forsythbarr.mobileapp: 4:19) (com.android.launcher/com.android.launcher2.Launcher: 14:19)* (AtchDlg:com.android.launcher/com.android.launcher2.Launcher: 0:2)* I/ActivityManager( 1109): Process nz.co.forsythbarr.mobileapp (pid 31238) has died.