Java (HTTPLog)-Static: isSBSettingEnabled false 错误并且应用程序正在关闭
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/36490250/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
(HTTPLog)-Static: isSBSettingEnabled false error and app is closing
提问by MNM
I looked this up quite a bit and so far what I gathered is that this is a Samsung issue that involves the HttpUrlConnection not being able to work on a Samsung for some reason. So how do I go about fixing this. I could not understand what the other people have said to do to fix this. The app runs perfectly on a emulator but dies on both Samsung phones I have for testing. One of the samsongs is a S4 active Android 5.0.1 API 21
我查了很多,到目前为止,我收集到的是这是一个三星问题,涉及 HttpUrlConnection 由于某种原因无法在三星上工作。那么我该如何解决这个问题。我不明白其他人说要做什么来解决这个问题。该应用程序在模拟器上完美运行,但在我用于测试的两部三星手机上都失效了。三星之一是 S4 活动 Android 5.0.1 API 21
I am using the same http calls to download other data and that works just fine. It is just when I try to access a login page that it won't even go to it. I don't think that there is anything wrong with my code because it works on the emulator just fine.
我使用相同的 http 调用来下载其他数据,效果很好。只是当我尝试访问登录页面时,它甚至不会访问它。我不认为我的代码有什么问题,因为它在模拟器上运行得很好。
This is what the output error is giving me Thank for any help with this.
这就是输出错误给我的原因 感谢您对此的任何帮助。
W/InstanceID/Rpc: Found 10063
E/ViewSystem: ViewRootImpl #2 Surface is not valid.
D/AbsListView: Get MotionRecognitionManager
I/System.out: (HTTPLog)-Static: isSBSettingEnabled false
I/System.out: (HTTPLog)-Static: isShipBuild true
/System.out: (HTTPLog)-Thread-35911-714863967: SmartBonding Enabling is false,
SHIP_BUILD is true, log to file is false, DBG is false
/System.out: (HTTPLog)-Static: isSBSettingEnabled false
采纳答案by MNM
Ok i found out what went wrong. I was using a shared preference that got corrupted when I uninstalled it from the device and reinstalled it. Then I would send the wrong stored values to the loginpage which would think it was right and then send it along its merry way not caring. Stupid login page. Just goes to show you you can't always rely on the logcat for all your needs. Thank for anyone who looked at this.
好的,我发现出了什么问题。我使用的共享首选项在我从设备上卸载并重新安装时已损坏。然后我会将错误的存储值发送到登录页面,登录页面会认为它是正确的,然后将其发送到不关心的快乐方式。愚蠢的登录页面。只是向您展示您不能总是依赖 logcat 来满足您的所有需求。感谢任何看过这个的人。
回答by karishma patel
Just add the following line in your Manifest.xml:
只需在 Manifest.xml 中添加以下行:
android:usesCleartextTraffic="true"