2012-02-23 20 views
0

私のプロジェクトにこの問題があります。私は何をすべきかを知らない。私を助けてください。ここでのアプリケーションのためのlogcatは、シミュレータで2.2Android開発エラー、Eclipseを使用

少し文字化けします
02-23 07:48:27.474: I/PhoneGapLog(274): Changing log level to DEBUG(3) 
02-23 07:48:27.474: D/DroidGap(274): DroidGap.onCreate() 
02-23 07:48:27.485: D/DroidGap(274): DroidGap.init() 
02-23 07:48:27.653: D/DroidGap(274): DroidGap.loadUrl(file:///android_asset/www/index.html, 9000) 
02-23 07:48:27.693: D/SoftKeyboardDetect(274): Ignore this event 
02-23 07:48:27.804: D/SoftKeyboardDetect(274): Ignore this event 
02-23 07:48:36.753: D/DroidGap(274): DroidGap.loadUrl(file:///android_asset/www/index.html) 
02-23 07:48:36.753: D/DroidGap(274): DroidGap: url=file:///android_asset/www/index.html baseUrl=file:///android_asset/www/ 
02-23 07:48:37.245: D/dalvikvm(274): GC_FOR_MALLOC freed 2060 objects/177440 bytes in 140ms 
02-23 07:48:37.423: D/dalvikvm(274): GC_FOR_MALLOC freed 1065 objects/68792 bytes in 55ms 
02-23 07:48:39.503: I/Database(274): sqlite returned: error code = 14, msg = cannot open file at source line 25467 
02-23 07:48:40.154: E/Contact Query(274): Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray 
02-23 07:48:40.154: E/Contact Query(274): org.json.JSONException: Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray 
02-23 07:48:40.154: E/Contact Query(274): at org.json.JSON.typeMismatch(JSON.java:96) 
02-23 07:48:40.154: E/Contact Query(274): at org.json.JSONArray.getJSONArray(JSONArray.java:459) 
02-23 07:48:40.154: E/Contact Query(274): at com.phonegap.ContactManager.execute(ContactManager.java:87) 
02-23 07:48:40.154: E/Contact Query(274): at com.phonegap.api.PluginManager$1.run(PluginManager.java:150) 
02-23 07:48:40.154: E/Contact Query(274): at java.lang.Thread.run(Thread.java:1096) 
02-23 07:48:40.543: D/PhoneGapLog(274): Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert 
02-23 07:48:40.543: D/PhoneGapLog(274): file:///android_asset/www/phonegap-1.4.1.js: Line 717 : Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert 
02-23 07:48:40.543: I/Web Console(274): Error in error callback: Contacts2 = ReferenceError: Can't find variable: elert at file:///android_asset/www/phonegap-1.4.1.js:717 
02-23 07:48:42.493: D/dalvikvm(274): GC_FOR_MALLOC freed 3339 objects/726120 bytes in 158ms 

答えて

0

を走っている...あなたは、あなたの質問を編集して、コードブロック内のものをラップし、それにいくつかの改行を与えることができますか?最初のぼろぼろに私はPhoneGapのものをたくさん見ているかもしれません。おそらく、あなたもそれにあなたの投稿にタグを付けることができます。とにかくそれは

など、重大な誤りである、何が起こっているかを解読するのは難しいああが、それはあなたがいくつかを強要しようとしているよう

は、まあ、それは見えます...私の瞬間を与える...です単一のJSONObjectをJSONArrayに挿入すると...これは悪いニュースです。いくつかのコードを投稿できますか?

+0

どちらがどちらであるかわかりません。私は非常に申し訳ない。このプロジェクトは私の教授によって与えられ、彼は私が彼が言った瞬間のログイン特権をバイパスしたいと思っています。 –

0

この行:データベースへの接続エラーがあるよう

02-23 07:48:39.503: I/Database(274): sqlite returned: error code = 14, msg = cannot open file at source line 25467 

が見えます。おそらく、データベースから取り出されることになっているすべての値がnull値であるため、なぜアプリケーションが失敗しているので

02-23 07:48:40.154: E/Contact Query(274): Value {"birthday":null,"ims":null,"nickname":null,"rawId":null,"urls":null,"organizations":null,"emails":null,"phoneNumbers":null,"photos":null,"id":null,"name":{"middleName":null,"familyName":null,"formatted":"","givenName":"","honorificSuffix":null,"honorificPrefix":null},"categories":null,"addresses":null,"displayName":null,"note":null} at 0 of type org.json.JSONObject cannot be converted to JSONArray 

:今度はこのエラー行が発生し

。プロジェクト内のその行で25467.

ルック:

最初のエラーは、コードのどの行が失敗している正確にわかります。

+0

ありがとうございます。とにかく私は瞬時にデータベースへのログインをバイパスできますか?このプロジェクトに関するイベントを削除または追加する必要がありますか?ありがとうございます –

+0

そのログインに基づいてデータを必要とするメソッド/関数呼び出しを無効にする必要があります。あなたはそれをコメントすることができますが、コードのセクションを処理しないプログラムで終了します。 – Sorean

+2

sqliteのエラーコード14は無視しても問題ありません。Android WebViewを初めて起動すると、そのエラーが発生します。 –

0

私はあなたのHTMLコードを見ることができたら助けになると思います。 navigator.contacts.find()を実行しようとしているようで、結果が返されていないようです。私が気づくもう一つのことは、あなたのエラーコールバックが "elert"を実行しようとしていることですが、おそらく "警告"でなければなりません。

関連する問題