mrenouf / android-spatialite

46 stars 19 forks source link

Figure out why Spatialite doesn't get properly loaded on Android < 2.3 #3

Closed mrenouf closed 13 years ago

mrenouf commented 13 years ago

On < android 2.3 (SDK version 10), all I get is an error attempting to open the database.

mrenouf commented 13 years ago

AHA! Classpath conflicts!

This explains everything. So I will go about renaming the package (as well as placing it in a proper package).

03-14 23:10:35.696: DEBUG/installd(32): DexInv: --- BEGIN '/data/app/vmdl16985.tmp' ---
03-14 23:10:35.806: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Authorizer;' has an earlier definition; blocking out
03-14 23:10:35.806: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Blob;' has an earlier definition; blocking out
03-14 23:10:35.806: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/BlobR;' has an earlier definition; blocking out
03-14 23:10:35.806: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/BlobW;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/BusyHandler;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Callback;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Constants;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/DBDump;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Database;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Exception;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Function;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/FunctionContext;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/JDBCDriver;' has an earlier definition; blocking out
03-14 23:10:35.816: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/ProgressHandler;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Shell;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Stmt;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/StringEncoder;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/TableResult;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Trace;' has an earlier definition; blocking out
03-14 23:10:35.826: DEBUG/dalvikvm(263): DexOpt: 'LSQLite/Vm;' has an earlier definition; blocking out
03-14 23:10:35.846: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Authorizer;': multiple definitions
03-14 23:10:35.846: INFO/dalvikvm(263): DexOpt: not resolving ambiguous class 'LSQLite/Exception;'
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Blob;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/BlobR;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/BlobW;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/BusyHandler;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Callback;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Constants;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/DBDump;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Database;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Exception;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Function;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/FunctionContext;': multiple definitions
03-14 23:10:35.886: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/JDBCDriver;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/ProgressHandler;': multiple definitions
03-14 23:10:35.896: INFO/dalvikvm(263): DexOpt: not resolving ambiguous class 'LSQLite/Shell;'
03-14 23:10:35.896: INFO/dalvikvm(263): DexOpt: not resolving ambiguous class 'LSQLite/Exception;'
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Shell;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Stmt;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/StringEncoder;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/TableResult;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Trace;': multiple definitions
03-14 23:10:35.896: DEBUG/dalvikvm(263): DexOpt: not verifying 'LSQLite/Vm;': multiple definitions
03-14 23:10:35.906: INFO/dalvikvm(263): DexOpt: not resolving ambiguous class 'LSQLite/Database;'
03-14 23:10:35.906: DEBUG/dalvikvm(263): DexOpt: load 48ms, verify 59ms, opt 1ms
03-14 23:10:35.916: DEBUG/installd(32): DexInv: --- END '/data/app/vmdl16985.tmp' (success) ---
mrenouf commented 13 years ago

Fixed by renaming package from "SQLite" to "jsqlite"