在java.util.MissingResourceException上使用AndroidStudio 3.0.1,Flutter app build失败

时间:2018-01-01 11:48:32

标签: android android-studio flutter

我在使用AndroidStudio 3.0.1构建Flutter应用程序时出现问题 - 它是一个全新的项目,使用模拟器运行很好,但是当通过Build构建签名应用程序时 - >生成签名应用程序,我得到:

  

错误:Android Source Generator:错误:无法找到基本名称的包   messages.AndroidJpsBundle,locale en_CZ

     

java.util.MissingResourceException:无法找到基本名称的包   messages.AndroidJpsBundle,locale en_CZ at   java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)     在java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)     在java.util.ResourceBundle.getBundle(ResourceBundle.java:773)at   org.jetbrains.jps.android.AndroidJpsBundle.getBundle(AndroidJpsBundle.java:22)     在   org.jetbrains.jps.android.AndroidJpsBundle.message(AndroidJpsBundle.java:32)     在   org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.computeModuleDatas(AndroidSourceGeneratingBuilder.java:1276)     在   org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.doBuild(AndroidSourceGeneratingBuilder.java:130)     在   org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.build(AndroidSourceGeneratingBuilder.java:114)     在   org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1263)     在   org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:940)     在   org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1012)     在   org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:903)     在   org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:736)     在   org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:384)     在   org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:192)     在   org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138)     在   org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:295)     在org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:125)     在   org.jetbrains.jps.cmdline.BuildMain $ MyMessageHandler.lambda $ channelRead0 $ 0(BuildMain.java:236)     在   org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda $ executeOnPooledThread $ 0(SharedThreadPoolImpl.java:42)     在   java.util.concurrent.Executors $ RunnableAdapter.call(Executors.java:511)     在java.util.concurrent.FutureTask.run(FutureTask.java:266)at   java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)     在   java.util.concurrent.ThreadPoolExecutor中的$ Worker.run(ThreadPoolExecutor.java:617)     在java.lang.Thread.run(Thread.java:745)

我无法弄清楚如何摆脱这种情况,而且en_CZ区域设置无需来自哪里(可能来自Mac OS设置)

0 个答案:

没有答案