应用程序与" android.database.sqlite.SQLiteException"

时间:2017-02-22 04:19:46

标签: android sqlite crash

应用程序在点击Web服务时崩溃了。在Stacktrace中显示以下错误;

  

android.database.sqlite.SQLiteException:不是错误(代码0):可以   不以读/写模式打开数据库。在   android.database.sqlite.SQLiteConnection.nativeOpen(Native Method)at   android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:207)   在   android.database.sqlite.SQLiteConnection.open(SQLiteConnection.java:191)   在   android.database.sqlite.SQLiteConnectionPool.openConnectionLocked(SQLiteConnectionPool.java:463)   在   android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:185)   在   android.database.sqlite.SQLiteConnectionPool.open(SQLiteConnectionPool.java:177)   在   android.database.sqlite.SQLiteDatabase.openInner(SQLiteDatabase.java:806)   在   android.database.sqlite.SQLiteDatabase.open(SQLiteDatabase.java:791)   在   android.database.sqlite.SQLiteDatabase.openDatabase(SQLiteDatabase.java:694)   在android.app.ContextImpl.openOrCreateDatabase(ContextImpl.java:571)   在   android.content.ContextWrapper.openOrCreateDatabase(ContextWrapper.java:269)   在   android.database.sqlite.SQLiteOpenHelper.getDatabaseLocked(SQLiteOpenHelper.java:223)   在   android.database.sqlite.SQLiteOpenHelper.getWritableDatabase(SQLiteOpenHelper.java:163)   在bmn.run(:com.google.android.gms.DynamiteModulesC:72)at   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1113)   在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:588)   在java.lang.Thread.run(Thread.java:818)

但在我的整个应用程序中,我没有使用任何SQLite DB。我不明白为什么它会向我显示这个错误。

以下是我的AndroidManifest.xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:tools="http://schemas.android.com/tools"
    package="medimanage.corporate.mobile"
    android:installLocation="preferExternal">

    <uses-sdk android:minSdkVersion="19" />

    <uses-permission android:name="android.permission.INTERNET" />
    <uses-permission android:name="android.permission.READ_PHONE_STATE" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
    <uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
    <uses-permission android:name="android.permission.WAKE_LOCK" />
    <uses-permission android:name="com.google.android.c2dm.permission.RECEIVE" />
    <uses-permission android:name="android.permission.CALL_PHONE" />
    <uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
    <uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
    <uses-permission android:name="android.permission.RECEIVE_SMS" />
    <uses-permission android:name="android.permission.READ_SMS" />

    <permission
        android:name="corporate.mobile.permission.C2D_MESSAGE"
        android:protectionLevel="signature" />

    <!-- for google maps-->
    <permission
        android:name="corporate.mobile.permission.MAPS_RECEIVE"
        android:protectionLevel="signature" />

    <uses-permission android:name="corporate.mobile.permission.MAPS_RECEIVE" />
    <!-- Required OpenGL ES 2.0. for Maps V2 -->
    <uses-feature
        android:glEsVersion="0x00020000"
        android:required="true" />

    <application
        android:name=".common.Utils.ApplicationLoader"
        android:allowBackup="true"
        android:icon="@drawable/medi_app_icon"
        android:label="@string/app_name"
        android:persistent="true"
        android:screenOrientation="portrait"
        android:theme="@style/AppTheme">
        <activity
            android:name=".activities.Splash"
            android:configChanges="orientation"
            android:label="@string/app_name"
            android:theme="@style/AppTheme.BrandedLaunch"
            android:screenOrientation="portrait">
            <intent-filter>
                <action android:name="android.intent.action.MAIN" />
                <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
        </activity>

        <!-- All activities declarartion -->
        ---------------------------
        ----------------------------

        <activity
            android:name="de.quist.app.errorreporter.ExceptionReportActivity"
            android:process=":exceptionReporter"
            android:theme="@android:style/Theme.NoDisplay" />

        <service
            android:name="de.quist.app.errorreporter.ExceptionReportService"
            android:process=":exceptionReporter" />

        <meta-data
            android:name="de.quist.app.errorreporter.targetUrl"
            android:value="url" />

        <meta-data
            android:name="de.quist.app.errorreporter.dialogMessageHint"
            android:resource="@string/error_reporting_message_hint" />

        <!-- Goolge Maps API Key -->
        <meta-data
            android:name="com.google.android.maps.v2.API_KEY"
            android:value="Key_value" />

        <!--[START] Google Analytics -->
        <!-- Used for Google Play Store Campaign Measurement -->
        <service android:name="com.google.analytics.tracking.android.CampaignTrackingService" />

        <receiver
            android:name="com.google.analytics.tracking.android.CampaignTrackingReceiver"
            android:exported="true"
            tools:ignore="ExportedReceiver">
            <intent-filter>
                <action android:name="com.android.vending.INSTALL_REFERRER" />
            </intent-filter>
        </receiver>
        <!--[END] Google Analytics -->

        <!-- [START firebase_service] -->
        <service android:name=".FCM_Notification.MediFirebaseMessagingService">
            <intent-filter>
                <action android:name="com.google.firebase.MESSAGING_EVENT" />
            </intent-filter>
        </service>
        <!-- [END firebase_service] -->
        <!-- [START firebase_id_service] -->
        <service android:name=".FCM_Notification.MediFirebaseInstanceIDService">
            <intent-filter>
                <action android:name="com.google.firebase.INSTANCE_ID_EVENT" />
            </intent-filter>
        </service>
        <!-- [END firebase_id_service] -->
        <!-- SMS Reading for OTP -->
        <receiver android:name=".common.Utils.SmsReceiver">
            <intent-filter>
                <action android:name="android.provider.Telephony.SMS_RECEIVED" />
            </intent-filter>
        </receiver>

    </application>

</manifest>

请提供解决此错误的任何解决方案。

0 个答案:

没有答案