question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Android ~ Windows 10

See original GitHub issue

Hi,

Did 3.0.0 break Android unit test support?

Exception in thread "main" java.lang.NoSuchMethodError: org.junit.platform.commons.util.ReflectionUtils.getDefaultClassLoader()Ljava/lang/ClassLoader;
	at org.junit.platform.launcher.core.ServiceLoaderTestEngineRegistry.loadTestEngines(ServiceLoaderTestEngineRegistry.java:30)
	at org.junit.platform.launcher.core.LauncherFactory.create(LauncherFactory.java:53)
	at com.intellij.junit5.JUnit5IdeaTestRunner.createListeners(JUnit5IdeaTestRunner.java:39)
	at com.intellij.rt.execution.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:49)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:242)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:70)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at com.intellij.rt.execution.application.AppMainV2.main(AppMainV2.java:131)

If so, how can I make it work again?

Thanks

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
sksamuelcommented, Apr 7, 2018

That makes sense and means it was what I was saying that the 3.0.x release of android studio has an earlier version of junit embedded that clashes with the version used by kotlintest. And because it’s built into intellij it’s not a normal dependency that’s bumped. So good to know 3.1.0 works.

1reaction
sksamuelcommented, Apr 1, 2018

There’s a version mismatch somewhere with reflections. I’ll have to look into it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Use apps from your Android device on your PC
With the Phone Link app, you can instantly access the Android apps installed on your mobile device ... A PC running the Windows...
Read more >
5 Ways to Run Android Apps on Your PC for Free | PCMag
1. Mirror Your Phone With Windows · 2. Run Your Favorite Apps With BlueStacks · 3. Emulate Full Android Experience With Genymotion ·...
Read more >
How to Run Android Apps on Windows 10 - Lifewire
1. First, get the Your Phone app from Microsoft to install on your Windows 10 PC. Make sure the version you get is...
Read more >
The 9 Best Android Emulators for Windows 10 and Windows 11
Try out Android apps on your computer with these emulators · BlueStacks · Amazon Appstore · MEmu · GameLoop · Remix OS Player...
Read more >
Windows 10 can run Android apps on your PC — here's how
With the upcoming release of Windows 11, Android apps will soon be able to run natively on your PC with some help from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found