Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NoSuchMethodError: No virtual method newWebSocket #16926

Closed
1 task
weiwanfang opened this issue Nov 22, 2017 · 3 comments
Closed
1 task

java.lang.NoSuchMethodError: No virtual method newWebSocket #16926

weiwanfang opened this issue Nov 22, 2017 · 3 comments
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.

Comments

@weiwanfang
Copy link

FATAL EXCEPTION: AsyncTask #2
Process: com.heniaokeji.geji, PID: 11493
java.lang.RuntimeException: An error occurred while executing doInBackground()
at android.os.AsyncTask$3.done(AsyncTask.java:318)
at java.util.concurrent.FutureTask.finishCompletion(FutureTask.java:354)
at java.util.concurrent.FutureTask.setException(FutureTask.java:223)
at java.util.concurrent.FutureTask.run(FutureTask.java:242)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607)
at java.lang.Thread.run(Thread.java:761)
Caused by: java.lang.NoSuchMethodError: No virtual method newWebSocket(Lokhttp3/Request;Lokhttp3/WebSocketListener;)Lokhttp3/WebSocket; in class Lokhttp3/OkHttpClient; or its super classes (declaration of 'okhttp3.OkHttpClient' appears in /data/app/com.heniaokeji.geji-1/base.apk:classes3.dex)
at com.facebook.react.devsupport.InspectorPackagerConnection$Connection.connect(InspectorPackagerConnection.java:239)
at com.facebook.react.devsupport.InspectorPackagerConnection.connect(InspectorPackagerConnection.java:44)
at com.facebook.react.devsupport.DevServerHelper$3.doInBackground(DevServerHelper.java:198)
at com.facebook.react.devsupport.DevServerHelper$3.doInBackground(DevServerHelper.java:194)
at android.os.AsyncTask$2.call(AsyncTask.java:304)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) 
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) 
at java.lang.Thread.run(Thread.java:761) 

  • 1.

Additional Information

React Native version: 0.49.0

"react": "16.0.0-beta.5",
"react-native": "0.49.0",
"react-navigation": "^1.0.0-beta.19",
"teaset": "^0.4.8"

Platform: Android
Development Operating System:
Dev tools: Android Studio 3.0

This problem is very urgent!!!
what should I do?
Thank you for the first!!!

@react-native-bot
Copy link
Collaborator

@facebook-github-bot no-template

@facebook-github-bot
Copy link
Contributor

Hey @wwf7758258, thanks for posting this! It looks like your issue is missing some required information. Can you please add all the details specified in the Issue Template? This is necessary for people to be able to understand and reproduce your issue. I am going to close this, but please feel free to open a new issue with the additional information provided. Thanks!

How to ContributeWhat to Expect from Maintainers

@facebook-github-bot facebook-github-bot added the Ran Commands One of our bots successfully processed a command. label Nov 22, 2017
@weiwanfang
Copy link
Author

configurations.all {
resolutionStrategy.force 'com.google.code.findbugs:jsr305:1.3.9'
// resolutionStrategy.force 'com.squareup.okhttp3:okhttp:3.5.0'
// exclude module: 'okhttp-ws'
resolutionStrategy.force 'com.squareup.okhttp3:okhttp:3.8.0'
resolutionStrategy.force 'com.squareup.okhttp3:logging-interceptor:3.8.0'
resolutionStrategy.force 'com.squareup.okio:okio:1.7.0'
}

I made mandatory resolutionStrategy, but there is no effect.

@facebook facebook locked as resolved and limited conversation to collaborators Nov 22, 2018
@react-native-bot react-native-bot added the Resolution: Locked This issue was locked by the bot. label Nov 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Ran Commands One of our bots successfully processed a command. Resolution: Locked This issue was locked by the bot.
Projects
None yet
Development

No branches or pull requests

3 participants