小编olw*_*wat的帖子

React-native android“程序类型已存在:com.reactnativecommunity.asyncstorage.AsyncLocalStorageUtil”

我们只是升级了一个包,就会发生这种情况。它在 IOS 部分有效,但在 android 部分无效。我尝试排除此类,但没有效果有什么方法可以从包中删除此类吗?我搜索相同的问题但无济于事我尝试回滚,但我们有需要新包的更改

应用程序/build.gradle

    apply plugin: "com.android.application"
apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle"
import com.android.build.OutputFile



project.ext.react = [
    entryFile: "index.js",
    enableHermes: false,  // clean and rebuild if changing
]

apply from: "../../node_modules/react-native/react.gradle"


def enableHermes = project.ext.react.get("enableHermes", false);

android {
    compileSdkVersion rootProject.ext.compileSdkVersion

    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }

    defaultConfig {
        applicationId "com.ginko.ginko"
        minSdkVersion rootProject.ext.minSdkVersion
        targetSdkVersion rootProject.ext.targetSdkVersion
        versionCode 1
        versionName "1.0"
        multiDexEnabled true
        missingDimensionStrategy 'react-native-camera', 'general'
    }
    splits {
        abi {
            reset()
            enable enableSeparateBuildPerCPUArchitecture
            universalApk false  // If true, also …
Run Code Online (Sandbox Code Playgroud)

android react-native

6
推荐指数
1
解决办法
2622
查看次数

标签 统计

android ×1

react-native ×1