0

我有一个奇怪的问题。

我在 React Native 中开发了一个应用程序,并将其上传到应用商店和 Play 商店的第一个版本。现在我已经计划了第二个版本并完成了编码,当我通过终端运行它时它工作正常(使用 Metro bundler 进行调试构建)。但是当我尝试生成一个签名的构建并将其上传到 Playstore 时,问题就出现了。

当我生成签名的apk时,我得到了

"

无法执行 aapt com.android.ide.common.process.ProcessException: 无法执行 aapt "

之前。所以我在 gradle.properties 中添加了“android.enableAapt2=true”,然后我现在就可以生成构建了。但是我收到了警告

W/ResourceType(36544):对于资源 0x0101053d,条目索引 (1341) 超出类型 entryCount(1320) W/ResourceType(36544):对于资源 0x0101053e,条目索引 (1342) 超出类型 entryCount(1320) W/ResourceType( 36544):对于资源 0x0101053b,条目索引 (1339) 超出类型 entryCount(1320) W/ResourceType(36544):对于资源 0x0101053c,条目索引 (1340) 超出类型 entryCount(1320)

W/ResourceType(36544):对于资源 0x0101053d,条目索引 (1341) 超出类型 entryCount(1329) W/ResourceType(36544):对于资源 0x0101053e,条目索引 (1342) 超出类型 entryCount(1329) W/ResourceType( 36544):对于资源 0x0101053b,条目索引 (1339) 超出类型 entryCount(1329) W/ResourceType(36544):对于资源 0x0101053c,条目索引 (1340) 超出类型 entryCount(1329)

W/ResourceType(36544):对于资源 0x0101053d,条目索引 (1341) 超出类型 entryCount(1266) W/ResourceType(36544):对于资源 0x0101053e,条目索引 (1342) 超出类型 entryCount(1266) W/ResourceType( 36544):对于资源 0x0101053b,条目索引 (1339) 超出类型 entryCount(1266) W/ResourceType(36544):对于资源 0x0101053c,条目索引 (1340) 超出类型 entryCount(1266)

.当我尝试在任何 android 设备中安装生成的发布/签名版本时,我收到错误,因为“包似乎已损坏”。

我尝试了很多方法,但无法解决。任何帮助表示赞赏。

我在我的应用程序中使用的版本如下,

安卓专用:

    classpath 'com.android.tools.build:gradle:3.2.0'

compileSdkVersion 26 buildToolsVersion "26.0.3"

defaultConfig {
    applicationId "my app package name."
    minSdkVersion 26
    targetSdkVersion 26
    versionCode 15
    versionName "1.15"
    ndk {
        abiFilters "armeabi-v7a", "x86"
    }
}

反应原生:

  "dependencies": {
    "axios": "^0.18.0",
    "i18n-js": "^3.0.3",
    "immutable": "^3.8.2",
    "prop-types": "^15.6.1",
    "react": "16.3.1",
    "react-native": "^0.55.4",
    "react-native-auto-height-image": "^1.0.0",
    "react-native-communications": "^2.2.1",
    "react-native-custom-picker": "^0.2.0",
    "react-native-device-info": "^0.22.5",
    "react-native-i18n": "^2.0.12",
    "react-native-keyboard-accessory": "0.0.10",
    "react-native-keyboard-input": "^5.2.3",
    "react-native-marquee": "^0.3.1",
    "react-native-material-textfield": "^0.12.0",
    "react-native-phone-call": "^1.0.4",
    "react-native-scalable-image": "^0.4.0",
    "react-native-send-intent": "^1.0.25",
    "react-navigation": "^1.6.1",
    "react-navigation-redux-helpers": "^1.0.3",
    "react-redux": "^5.0.7",
    "redux": "^3.7.2",
    "redux-thunk": "^2.2.0"
  },
4

0 回答 0