Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Import from Eclipse to Android Studio: Can't find bundle messages.AndroidJpsBundle, locale pl_PL

I've just imported Eclipse project into Android Studio, and it resulted the above message when building.

I am deving a simple Android app without any framework like Spring/Hibernate and I am not using ResourceBundle anywhere (I am using res/values/strings.xml solution).

My project has a dapendency of Google Play services, which by the look contains some references to the ResourceBundle class.

The other issue is that I cannot resolve any class from ads namespace, like AdView: import com.google.android.gms.ads.AdView; This sounds like it's related to the original issue.

Error:Android Source Generator: Error: Can't find bundle for base name messages.AndroidJpsBundle, locale pl_PL
java.util.MissingResourceException: Can't find bundle for base name messages.AndroidJpsBundle, locale pl_PL
    at 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:1246)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuildersForChunk(IncProjectBuilder.java:923)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildTargetsChunk(IncProjectBuilder.java:995)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunkIfAffected(IncProjectBuilder.java:886)
    at org.jetbrains.jps.incremental.IncProjectBuilder.buildChunks(IncProjectBuilder.java:719)
    at org.jetbrains.jps.incremental.IncProjectBuilder.runBuild(IncProjectBuilder.java:371)
    at org.jetbrains.jps.incremental.IncProjectBuilder.build(IncProjectBuilder.java:178)
    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:138)
    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)

Also I am not using gradle as it blows out my whole project properties, from unknown reasons.

like image 486
divix Avatar asked Jun 17 '18 18:06

divix


1 Answers

In the wild I've never once seen a 100% effective import tool for developers.

Instead of trying to import the app spend the time to familiarize with the new environment by creating the same app in the new environment. Most of it will be side by side copy and paste.

like image 81
danny117 Avatar answered Nov 18 '22 06:11

danny117