正在创建我的项目的构建,但失败。反应本地博览会

时间:2019-03-12 11:26:32

标签: react-native expo

在我的博览会项目中,我遇到了以下错误- 遇到错误-

[stderr] * What went wrong:
[stderr] Execution failed for task ':app:mergeProdMinSdkProdKernelReleaseResources'.
[stderr] > Error: java.util.concurrent.ExecutionException: com.android.builder.internal.aapt.v2.Aapt2Exception: AAPT2 error:
     

查看日志以获取详细信息       [stderr] *尝试:       [stderr]运行       [stderr] --stacktrace选项获取堆栈跟踪。使用--info或--debug选项运行以获取更多日志输出。与--scan一起运行以获取完整的见解。       [stderr] *通过https://help.gradle.org获取更多帮助       [stderr]在6分45秒内失败           690个可执行任务:690个已执行           错误:进程退出,代码非零:1           在ChildProcess.child.on(/app/node_modules/xdl/node_modules/@expo/spawn-async/build/spawnAsync.js:39:21)           在emitTwo(events.js:126:13)           在ChildProcess.emit(events.js:214:7)           在也许关闭(internal / child_process.js:915:16)           在Process.ChildProcess._handle.onexit(internal / child_process.js:209:5)

app.json

{
  "expo":{
    "name":"YYY",
    "slug":"YYY",
    "scheme":"yyy",
    "sdkVersion":"31.0.0",
    "icon":"./assets/icon.png",
    "version":"1.0.0",
    "platforms":[
      "ios",
      "android"
    ],
    "orientation":"portrait",
    "primaryColor":"#cccccc",
    "packagerOpts":{
      "assetExts":[
        "ttf"
      ]
    },
    "android":{
      "package":"com.xxyy.xxyy",
      "splash":{
        "backgroundColor":"#ffffff",
        "ldpi":"./assets/splash.png",
        "mdpi":"./assets/mdpi/splash.png",
        "hdpi":"./assets/hdpi/splash.png",
        "xhdpi":"./assets/xhdpi/splash.png",
        "xxhdpi":"./assets/xxhdpi/splash.png",
        "xxxhdpi":"./assets/xxxhdpi/splash.png",
        "resizeMode":"cover"
      }
    },
    "ios":{
      "bundleIdentifier":"com.xxy.yyz",
      "splash":{
        "backgroundColor":"#ffffff",
        "resizeMode":"cover",
        "image":"./assets/ios/splash@2x.png",
        "tabletImage":"./assets/ios/splash.png"
      }
    },
    "androidStatusBarColor":"#334393",
    "androidStatusBar":{
      "barStyle":"light-content",
      "backgroundColor":"#334393"
    },
    "description":""
  }
}

0 个答案:

没有答案