2012-10-09 4 views
5

phonegap 및 JQM으로 앱을 개발 중입니다. 문제가 있습니다. 누구든지 내 애플 리케이션을 시작할 때 왜 내가 로그 에서이 오류가 말해 줄 수 있습니다.오류 로그 sqlite가 /cachedGeoposition.db에서로드하지 못했습니다.

10-09 13:47:33.316: D/CordovaWebView(26882): >>> loadUrlNow() 
10-09 13:47:33.320: D/DroidGap(26882): onMessage(onNativeReady,null) 
10-09 13:47:33.320: D/DroidGap(26882): onMessage(onPageFinished,file:///android_asset/www/index.html) 
10-09 13:47:33.363: E/SQLiteLog(26882): (14) cannot open file at line 30174 of [00bb9c9ce4] 
10-09 13:47:33.363: E/SQLiteLog(26882): (14) os_unix.c:30174: (2) open(/CachedGeoposition.db) - 
10-09 13:47:33.371: D/WebKit(26882): ERROR: 
10-09 13:47:33.371: D/WebKit(26882): SQLite database failed to load from /CachedGeoposition.db 
10-09 13:47:33.371: D/WebKit(26882): Cause - unable to open database file 
10-09 13:47:33.371: D/WebKit(26882): external/webkit/Source/WebCore/platform/sql/SQLiteDatabase.cpp(71) : bool WebCore::SQLiteDatabase::open(const WTF::String&, bool) 
10-09 13:47:33.461: D/DroidGap(26882): onMessage(networkconnection,3g) 

여기 내 매니페스트 여기

<manifest xmlns:android="http://schemas.android.com/apk/res/android" 
package="***.mobile" 
android:versionCode="1" 
android:versionName="1.0" > 

<uses-sdk 
    android:minSdkVersion="8" 
    android:targetSdkVersion="15" />  
    <supports-screens 
android:largeScreens="true" 
android:normalScreens="true" 
android:smallScreens="true" 
android:resizeable="true" 
android:anyDensity="true" /> 

<uses-permission android:name="android.permission.VIBRATE" /> 
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" /> 
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" /> 
<uses-permission android:name="android.permission.ACCESS_LOCATION_EXTRA_COMMANDS" /> 
<uses-permission android:name="android.permission.READ_PHONE_STATE" /> 
<uses-permission android:name="android.permission.INTERNET" /> 
<uses-permission android:name="android.permission.RECEIVE_SMS" /> 
<uses-permission android:name="android.permission.RECORD_AUDIO" /> 
<uses-permission android:name="android.permission.MODIFY_AUDIO_SETTINGS" /> 
<uses-permission android:name="android.permission.READ_CONTACTS" /> 
<uses-permission android:name="android.permission.WRITE_CONTACTS" /> 
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" /> 
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
<uses-permission android:name="android.permission.GET_ACCOUNTS" /> 
<uses-permission android:name="android.permission.BROADCAST_STICKY" /> 
<application 
    android:icon="@drawable/icone" 
    android:label="@string/app_name" 
    android:theme="@style/AppTheme" > 
    <activity 
     android:name="***.mobile.MainActivity" 
     android:label="@string/title_activity_main" 
     android:configChanges="orientation|keyboardHidden" 
     android:screenOrientation="portrait" > 
     <intent-filter> 
      <action android:name="android.intent.action.MAIN" /> 
      <category android:name="android.intent.category.LAUNCHER" /> 
     </intent-filter> 
    </activity> 
    <!-- ZXing activities --> 
<activity android:name="com.google.zxing.client.android.CaptureActivity" android:screenOrientation="landscape" android:configChanges="orientation|keyboardHidden" android:theme="@android:style/Theme.NoTitleBar.Fullscreen" android:windowSoftInputMode="stateAlwaysHidden"> 
    <intent-filter> 
    <action android:name="com.phonegap.plugins.barcodescanner.BarcodeScanner.SCAN"/> 
    <category android:name="android.intent.category.DEFAULT"/> 
    </intent-filter> 
</activity> 

<activity android:name="com.google.zxing.client.android.encode.EncodeActivity" android:label="@string/share_name"> 
<intent-filter> 
<action android:name="com.phonegap.plugins.barcodescanner.BarcodeScanner.ENCODE"/> 
<category android:name="android.intent.category.DEFAULT"/> 
</intent-filter> 
</activity> 
</application></manifest> 

package **.mobile; 
import org.apache.cordova.DroidGap; 
import android.content.Intent; 
import android.os.Bundle; 
import android.view.View; 
import android.webkit.WebSettings; 
import android.widget.Button; 

public class MainActivity extends DroidGap { 

@Override 
public void onCreate(Bundle savedInstanceState) { 

    super.onCreate(savedInstanceState); 
    super.setIntegerProperty("splashscreen", R.drawable.spashscreen); 
    //super.init(); 
    super.loadUrl("file:///android_asset/www/index.html", 4000); 

}} 

어떤 도움 감사 것이 내 mainActivity입니다. 감사.

답변

11

무해한 로그이므로 고칠 필요가 없습니다. PhoneGap에서 사용하는 WebView 구성 요소는 해당 DB 파일을로드하려고하지만 실제로 Android 브라우저에서만 사용됩니다. 당신은 그것을 무시하는 것이 안전합니다.

+0

고마워. =) – user1728824

+0

[이 답변] (http://stackoverflow.com/a/13181165/3408)에서와 같이 PhoneGap을 패치 할 수 있습니까? – rjmunro

0

SQLite 데이터베이스는 분명히

/CachedGeoposition.db

에서로드하지 못했습니다, 데이터베이스 경로가 없습니다.

+1

내 앱의 시작 부분에이 문제가 없었습니다. 갑자기 나타나서 왜, 어떻게 고쳐야할지 모르겠다. – user1728824