我用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()“并对其进行了注释,以避免运行和搜索数据库,但没有响应。
我对http://simonmacdonald.blogspot.com/2011/07/upgrading-your-phonegap-android.html进行了罚款,因为在我的项目中使用了BarcodScanner的这个示例
请帮帮我!!
发布于 2013-06-24 16:10:04
我被罚款的问题,因为不工作我的条形码扫描仪,解决方案是扩展活动!!因为,我在扩展activity时定义了主类,所以所有的类扩展Main都是为了实现activity的开始和结束的动画效果。
https://stackoverflow.com/questions/17150827
复制相似问题