我用PhoneGap 实现了cordova 2.1.0 插件,但是不要运行!!因为它有错误并且不启动!
error:
GC_EXPLICIT freed 52K, 39% free 6070K/9944K, paused 3ms+6ms, total 197ms
.....
cannot open file at line 30176 of [00bb9c9ce4]
os_unix.c:30176: (2) open(/CachedGeoposition.db) -
Error:
SQLite database failed to load from /CachedGeoposition.db
Cause - unable to open database file
external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool)
Uncaught TypeError: Object [object Object] has no method 'exec'
file:///android_asset/cordova-2.1.0.js: Line 955 : Uncaught TypeError: Object [object Object] has no method 'exec'
Uncaught TypeError: Object [object Object] has no method 'exec' at file:///android_asset/cordova-2.1.0.js:955
onMessage(spinner,stop)
Starting TG #0, 0x49fea1e0
它停在这条线上!
我在 main.js 中禁用并注释了函数“var getLocation = function()”,因为不要运行和搜索 db 但没有答案。
我罚款http://simonmacdonald.blogspot.com/2011/07/upgrading-your-phonegap-android.html,因为在我的项目中使用了此示例用于 BarcodScanner
请帮我!!