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

There is an exception in Android 7.1.1 #220

Open
gongjie opened this issue Dec 26, 2017 · 2 comments
Open

There is an exception in Android 7.1.1 #220

gongjie opened this issue Dec 26, 2017 · 2 comments

Comments

@gongjie
Copy link

gongjie commented Dec 26, 2017

Failed injecting hostName to work around Android InetAddress DNS bug: /192.168.23.123
java.lang.NoSuchFieldException: No field hostName in class Ljava/net/InetAddress; (declaration of 'java.net.InetAddress' appears in /system/framework/core-oj.jar)
at java.lang.Class.getDeclaredField(Native Method)
at org.fourthline.cling.android.AndroidNetworkAddressFactory.isUsableAddress(AndroidNetworkAddressFactory.java:57)
at org.fourthline.cling.transport.impl.NetworkAddressFactoryImpl.discoverBindAddresses(NetworkAddressFactoryImpl.java:404)
at org.fourthline.cling.transport.impl.NetworkAddressFactoryImpl.(NetworkAddressFactoryImpl.java:91)
at org.fourthline.cling.android.AndroidNetworkAddressFactory.(AndroidNetworkAddressFactory.java:0)
at org.fourthline.cling.android.AndroidUpnpServiceConfiguration.createNetworkAddressFactory(AndroidUpnpServiceConfiguration.java:77)
at org.fourthline.cling.DefaultUpnpServiceConfiguration.createNetworkAddressFactory(DefaultUpnpServiceConfiguration.java:257)
at org.fourthline.cling.transport.RouterImpl.enable(RouterImpl.java:129)
at org.fourthline.cling.android.AndroidRouter.enable(AndroidRouter.java:88)
at org.fourthline.cling.UpnpServiceImpl.(UpnpServiceImpl.java:87)
at org.fourthline.cling.android.AndroidUpnpServiceImpl$1.(AndroidUpnpServiceImpl.java:0)
at org.fourthline.cling.android.AndroidUpnpServiceImpl.onCreate(AndroidUpnpServiceImpl.java:54)
at android.app.ActivityThread.handleCreateService(ActivityThread.java:3191)
at android.app.ActivityThread.-wrap5(ActivityThread.java)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1567)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:6126)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776)

@Muazzim-android
Copy link

Same here

@4thline 4thline deleted a comment from wuxiantao1115 May 28, 2018
@shrutigoyal7032
Copy link

I am facing same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants