Error: Internal error: (java.lang.NoSuchMethodError) affecting all my projects

m The following Nerd Ranch tutorial on developing Android using Intellij and everything was smooth until I came up with a code call that required using DateFormat instead of displaying a timestamp. I made my changes when I tried to compile. I found that my application crashed, so I canceled all the changes I made with it until the last successful build, but still my application crashed and I restored the project, and now I get the following:

Error:Internal error: (java.lang.NoSuchMethodError) com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V java.lang.NoSuchMethodError: com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V at com.android.sdklib.internal.project.ProjectProperties.parsePropertyStream(ProjectProperties.java:541) at com.android.sdklib.repository.local.LocalPlatformPkgInfo.createAndroidTarget(LocalPlatformPkgInfo.java:158) at com.android.sdklib.repository.local.LocalPlatformPkgInfo.getAndroidTarget(LocalPlatformPkgInfo.java:95) at com.android.sdklib.repository.local.LocalSdk.getTargets(LocalSdk.java:702) at com.android.sdklib.repository.local.LocalSdk.getTargetFromHashString(LocalSdk.java:722) at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidTarget(AndroidJpsUtil.java:375) at org.jetbrains.jps.android.AndroidJpsUtil.getAndroidPlatform(AndroidJpsUtil.java:448) at org.jetbrains.jps.android.builder.AndroidPreDexBuildTarget.computeRootDescriptors(AndroidPreDexBuildTarget.java:110) at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.addRoots(BuildRootIndexImpl.java:72) at org.jetbrains.jps.builders.impl.BuildRootIndexImpl.<init>(BuildRootIndexImpl.java:62) at org.jetbrains.jps.cmdline.BuildRunner.load(BuildRunner.java:76) at org.jetbrains.jps.cmdline.BuildSession.runBuild(BuildSession.java:198) at org.jetbrains.jps.cmdline.BuildSession.run(BuildSession.java:113) at org.jetbrains.jps.cmdline.BuildMain$MyMessageHandler$1.run(BuildMain.java:133) at org.jetbrains.jps.service.impl.SharedThreadPoolImpl$1.run(SharedThreadPoolImpl.java:41) 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) 

Now it affects all my previous projects that worked fine earlier, I tried to do Invalidate cache / restart and open a new emulator and copy the code paste from the source, and still I have the same problem and I still don’t know which of because of this.

+6
source share
4 answers

I have the same problem. and I found this http://youtrack.jetbrains.com/issue/IDEA-127374

it seems that Intellij has released a patched version, I'm currently downloading it.

Maxim Mosienko July 22, 2014, 01:36 IntelliJ Idea 14.1.4b build 135.1230 is loading, you can download it with direct download links: http://download.jetbrains.com/idea/ideaIC-13.1.4b . * Or http://download.jetbrains.com/idea/ideaIU-13.1.4b . * (replace * with the suffix of your OS)

update 0: I installed the fixed version, it builds the android project correctly.

update 1: upgrade to 1230 and later with Windows: http://download.jetbrains.com/idea/ideaIU-13.1.4b.exe

+4
source

The recent 13.1.4 IntelliJ is causing the problem (if you are using IntelliJ)

0
source

Source: https://habr.com/ru/post/972607/


All Articles