Android:无法制作和添加/ acct / uid_10059:只读文件系统

问题描述

我正在尝试处理一个旧的android项目,最近我设法使其能够运行,并且在新的Android版本(例如(Pie,Oreo..))中也可以正常工作,但最近我发现,尝试在lollipop或以下Android版本中保存sharedpref数据(登录时)时,该应用程序在lollipop上崩溃,说
Failed to make and chown /acct/uid_10059: Read-only file system Fatal signal 11 (SIGSEGV),code 1,fault addr 0x0 in tid 10077

这里是stack traces

--------- beginning of crash

Fatal signal 11 (SIGSEGV),fault addr 0x0 in tid 17709

因此,基本上,我猜应用程序无法以较低的Android版本编写(但不确定)。我已经启用了multidex和其他必需的用户权限。有人遇到过类似的问题吗?我已经检查了该站点中的其他相同问题,但无法帮助自己。

这是我的build.gradle文件

buildscript {
    repositories {
        maven { url 'https://maven.fabric.io/public' }
    }

    dependencies {
        classpath 'io.fabric.tools:gradle:1.+'
    }
}
apply plugin: 'com.android.application'
apply plugin: 'io.fabric'

repositories {
    maven { url 'https://maven.fabric.io/public' }
}


android {


    signingConfigs {
        release {
            storeFile file('key_patha')
            storePassword 'name'
            keyAlias = 'name'
            keyPassword 'name'
        }
    }


    compileSdkVersion 28
    defaultConfig {
        applicationId "package_name"
        minSdkVersion 17
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        vectorDrawables.useSupportLibrary = true
        renderscriptTargetApi 19
        renderscriptSupportModeEnabled true
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
        signingConfig signingConfigs.release
    }


    dexOptions {
        // Prevent OutOfMemory with MultiDex during the build phase
        javaMaxHeapSize "4g"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'
//            signingConfig signingConfigs.config
        }
    }

    compileOptions {
        targetCompatibility JavaVersion.VERSION_1_8
        sourceCompatibility JavaVersion.VERSION_1_8
    }
    aaptOptions {
        cruncherEnabled = false
    }
}


dependencies {
    implementation filetree(include: ['*.jar'],dir: 'libs')

    implementation 'androidx.appcompat:appcompat:1.1.0'
    implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
    implementation 'androidx.legacy:legacy-support-v4:1.0.0'
    testImplementation 'junit:junit:4.12'

    androidTestImplementation('com.android.support.test.espresso:espresso-core:2.2.2',{
        exclude group: 'com.android.support',module: 'support-annotations'
    })
    implementation('io.socket:socket.io-client:0.8.3') {
        exclude group: 'org.json',module: 'json'
    }
    
    implementation 'com.android.support:design:28.0.0'
    implementation 'com.android.support:appcompat-v7:28.0.0'
    implementation 'com.android.support:support-v4:28.0.0'
    implementation 'com.android.support:cardview-v7:28.0.0'
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation 'com.skyfishjy.ripplebackground:library:1.0.1'
    implementation 'com.facebook.android:facebook-android-sdk:[4,5)'
    implementation 'com.android.support:multidex:1.0.0'
    implementation group: 'com.google.firebase',name: 'firebase-messaging',version: '20.0.1'
    implementation 'com.android.support:mediarouter-v7:28.0.0'
    implementation 'com.android.support:customtabs:28.0.0'
    implementation 'me.relex:circleindicator:1.2.2@aar'
    implementation 'de.hdodenhof:circleimageview:2.1.0'
    implementation 'com.github.devlight.navigationtabstrip:navigationtabstrip:1.0.4'
    implementation 'uk.co.chrisjenx:calligraphy:2.3.0'
    implementation 'com.loopeer.lib:shadow:0.0.3'
    implementation 'com.squareup.okhttp3:okhttp:3.9.0'
    implementation 'com.mcxiaoke.volley:library:1.0.19'
    implementation 'com.stripe:stripe-android:8.3.0'
    implementation 'com.koushikdutta.ion:ion:2.1.9'
    implementation 'com.github.mmin18:realtimeblurview:1.1.2'
    implementation 'com.yarolegovich:discrete-scrollview:1.3.0'
    implementation 'com.makeramen:roundedimageview:2.3.0'
    implementation 'org.greenrobot:eventbus:3.0.0'
    implementation 'com.squareup.picasso:picasso:2.5.2'
    implementation 'com.google.dagger:dagger:2.11'
    annotationProcessor 'com.google.dagger:dagger-compiler:2.11'
    implementation 'com.google.code.gson:gson:2.8.2'
    implementation 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'
    implementation 'com.squareup.retrofit2:converter-gson:2.3.0'

    compileOnly 'com.google.auto.value:auto-value:1.5'
    annotationProcessor "com.google.auto.value:auto-value:1.5"
    implementation 'com.intuit.sdp:sdp-android:1.0.3'
    implementation 'com.google.code.gson:gson:2.8.1'
    implementation('com.fatboyindustrial.gson-jodatime-serialisers:gson-jodatime-serialisers:1.5.0') {
        exclude group: "joda-time",module: "joda-time"
    }
    implementation 'net.danlew:android.joda:2.9.5.1'
    implementation 'com.squareup.okhttp3:okhttp:3.12.0'
    implementation 'com.squareup.okhttp3:logging-interceptor:3.6.0'
    implementation 'com.jakewharton:butterknife:10.0.0'
    annotationProcessor 'com.jakewharton:butterknife-compiler:10.0.0'
    implementation 'io.reactivex.rxjava2:rxjava:2.0.7'
    implementation 'io.reactivex.rxjava2:rxandroid:2.0.1'
    implementation 'com.jakewharton.rxbinding2:rxbinding:2.0.0'
    implementation 'com.jakewharton.rxrelay2:rxrelay:2.0.0'
    implementation group: 'com.github.bumptech.glide',name: 'glide',version: '4.10.0'
    implementation 'com.github.firdausmaulan:GlideSlider:1.3.2'
    annotationProcessor 'com.github.bumptech.glide:compiler:4.10.0'
    implementation 'com.jakewharton.timber:timber:4.6.0'
    implementation 'com.google.code.findbugs:jsr305:3.0.2'
    implementation 'com.google.android.gms:play-services-maps:17.0.0'
    implementation group: 'com.google.android.gms',name: 'play-services-location',version: '17.0.0'
    implementation 'com.google.firebase:firebase-messaging:20.0.1'
    implementation group: 'com.google.firebase',name: 'firebase-core',version: '17.2.1'
    implementation 'com.google.android.gms:play-services-auth:17.0.0'

}
apply plugin: 'com.google.gms.google-services'

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)