当前位置: 代码迷 >> 综合 >> MissingResourceException: Can't find bundle for base name messages.AndroidJpsBundle, locale zh_CN
  详细解决方案

MissingResourceException: Can't find bundle for base name messages.AndroidJpsBundle, locale zh_CN

热度:95   发布时间:2023-12-14 07:46:26.0

背景:

公司业务需求,需要修改eclipse开发的老安卓项目;
eclipse 什么鬼?2015年就开始使用Android studio了,接受不了!
用as打开项目就开始报错。。。坑很多啊!

错误代码如下

Error:Android Source Generator: Error: Can't find bundle for base name messages.AndroidJpsBundle, locale zh_CN
java.util.MissingResourceException: Can't find bundle for base name messages.AndroidJpsBundle, locale zh_CNat java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1564)at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1387)at java.util.ResourceBundle.getBundle(ResourceBundle.java:773)at org.jetbrains.jps.android.AndroidJpsBundle.getBundle(AndroidJpsBundle.java:22)at org.jetbrains.jps.android.AndroidJpsBundle.message(AndroidJpsBundle.java:32)at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.runAaptCompiler(AndroidSourceGeneratingBuilder.java:971)at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.doBuild(AndroidSourceGeneratingBuilder.java:210)at org.jetbrains.jps.android.AndroidSourceGeneratingBuilder.build(AndroidSourceGeneratingBuilder.java:114)at org.jetbrains.jps.incremental.IncProjectBuilder.runModuleLevelBuilders(IncProjectBuilder.java:1314)at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:991)at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:1063)at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:954)at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:787)at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:376)at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:183)at org.jetbrains.jps.cmdline.BuildRunner.runBuild(BuildRunner.java:138)at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:308)at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:137)at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler.lambda$channelRead0$0(BuildMain.java:235)at org.jetbrains.jps.service.impl.SharedThreadPoolImpl.lambda$executeOnPooledThread$0(SharedThreadPoolImpl.java:42)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)
  相关解决方案