- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有应用程序,当我通过 Android Studio( Debug模式)安装它时,它在模拟器和设备中运行完美。但是当我尝试在模拟器或设备中安装签名的 apk 时,它已成功安装,但是当应用程序打开时它会出错。我评论了所有调用 httpconnection 并生成签名 apk 的代码,但错误仍然存在。
我认为proguard文件有错误,我该如何解决。
我在 proguard 中添加了以下代码,但它不起作用...
**
# Add project specific ProGuard rules here.
# By default, the flags in this file are appended to flags specified
# in F:\ADT\sdk/tools/proguard/proguard-android.txt
# You can edit the include path and order by changing the proguardFiles
# directive in build.gradle.
#
# For more details, see
# http://developer.android.com/guide/developing/tools/proguard.html
# Add any project specific keep options here:
# If your project uses WebView with JS, uncomment the following
# and specify the fully qualified class name to the JavaScript interface
# class:
#-keepclassmembers class fqcn.of.javascript.interface.for.webview {
# public *;
#}
-dontwarn com.viewpagerindicator.**
-assumenosideeffects class android.util.Log {
public static boolean isLoggable(java.lang.String, int);
public static int v(...);
public static int i(...);
public static int w(...);
public static int d(...);
public static int e(...);
}
-keepattributes Signature
-keepattributes *Annotation*
-keep class com.android.okhttp.** { *; }
-keep interface com.android.okhttp.** { *; }
-dontwarn com.android.okhttp.**
**
错误::
02-22 15:30:23.571 4257-4287/? W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeec35860, error=EGL_SUCCESS
02-22 15:30:23.769 4257-4279/? W/System.err: com.b.a.a.d.a: Could not find method: setSoTimeout
02-22 15:30:23.769 4257-4280/? W/System.err: com.b.a.a.d.a: Could not find method: setSoTimeout
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.a.d.b.a(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.a.d.b.a(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.a.c.b.setOption(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at at java.net.Socket.setSoTimeout(Socket.java:545)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:151)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.b.a(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at com.b.a.aa.run(Unknown Source)
02-22 15:30:23.769 4257-4279/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.769 4257-4280/? W/System.err: com.b.a.a.d.b.a(Unknown Source)
02-22 15:30:23.769 4257-4280/? W/System.err: at com.b.a.a.d.b.a(Unknown Source)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.b.a.a.c.b.setOption(Unknown Source)
02-22 15:30:23.770 4257-4280/? W/System.err: at java.net.Socket.setSoTimeout(Socket.java:545)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:151)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.770 4257-4280/? W/System.err: at com.b.a.m.run(Unknown Source)
02-22 15:30:23.770 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.770 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-22 15:30:23.770 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-22 15:30:23.770 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.777 4257-4280/? W/System.err: java.net.SocketException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.777 4257-4280/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:633)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.net.Socket.cacheLocalAddress(Socket.java:1001)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.net.Socket.connect(Socket.java:884)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:152)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.b.a.m.run(Unknown Source)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.777 4257-4280/? W/System.err: Caused by: android.system.ErrnoException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.777 4257-4280/? W/System.err: at libcore.io.Posix.getsockname(Native Method)
02-22 15:30:23.777 4257-4280/? W/System.err: at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:87)
02-22 15:30:23.777 4257-4280/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:629)
02-22 15:30:23.777 4257-4280/? W/System.err: ... 17 more
02-22 15:30:23.777 4257-4280/? W/System.err: java.net.SocketException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.777 4257-4280/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:633)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.net.Socket.cacheLocalAddress(Socket.java:1001)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.net.Socket.connect(Socket.java:884)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:152)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.777 4257-4280/? W/System.err: at com.b.a.m.run(Unknown Source)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
02-22 15:30:23.777 4257-4280/? W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
02-22 15:30:23.778 4257-4280/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.778 4257-4280/? W/System.err: Caused by: android.system.ErrnoException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.778 4257-4280/? W/System.err: at libcore.io.Posix.getsockname(Native Method)
02-22 15:30:23.778 4257-4280/? W/System.err: at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:87)
02-22 15:30:23.778 4257-4280/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:629)
02-22 15:30:23.778 4257-4280/? W/System.err: ... 17 more
02-22 15:30:23.781 4257-4279/? W/System.err: java.net.SocketException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:633)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.net.Socket.cacheLocalAddress(Socket.java:1001)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.net.Socket.connect(Socket.java:884)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:152)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.b.a(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.aa.run(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.781 4257-4279/? W/System.err: Caused by: android.system.ErrnoException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.Posix.getsockname(Native Method)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:87)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:629)
02-22 15:30:23.781 4257-4279/? W/System.err: ... 15 more
02-22 15:30:23.781 4257-4279/? W/System.err: java.net.SocketException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:633)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.net.Socket.cacheLocalAddress(Socket.java:1001)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.net.Socket.connect(Socket.java:884)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.Platform.connectSocket(Platform.java:174)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.Connection.connect(Connection.java:152)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.connect(HttpEngine.java:276)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpEngine.sendRequest(HttpEngine.java:211)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:382)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:106)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:217)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.DelegatingHttpsURLConnection.getOutputStream(DelegatingHttpsURLConnection.java:218)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.android.okhttp.internal.http.HttpsURLConnectionImpl.getOutputStream(HttpsURLConnectionImpl.java:25)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.ae.a(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.b.a(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at com.b.a.aa.run(Unknown Source)
02-22 15:30:23.781 4257-4279/? W/System.err: at java.lang.Thread.run(Thread.java:818)
02-22 15:30:23.781 4257-4279/? W/System.err: Caused by: android.system.ErrnoException: getsockname failed: EBADF (Bad file number)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.Posix.getsockname(Native Method)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.ForwardingOs.getsockname(ForwardingOs.java:87)
02-22 15:30:23.781 4257-4279/? W/System.err: at libcore.io.IoBridge.getSocketLocalAddress(IoBridge.java:629)
02-22 15:30:23.781 4257-4279/? W/System.err: ... 15 more
02-22 15:30:26.527 4257-4287/com.zeus.indiahistory W/EGL_emulation: eglSurfaceAttrib not implemented
02-22 15:30:26.527 4257-4287/com.zeus.indiahistory W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xeec358e0, error=EGL_SUCCESS
*
最佳答案
问题与设置混淆器有关。您需要禁用 proguard 或向 proguard 文件添加异常(exception)。将以下代码 fragment 添加到 proguard 文件并进行测试
-keep class android.net.http.** { *; }
-dontwarn android.net.http.**
关于android - 签名的 Apk 给出错误 : com. b.a.a.d.a:找不到方法:setSoTimeout,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35550802/
我有两种结构,Header 和Session,它们都符合协议(protocol)TimelineItem。 我有一个 Array 由 TimelineItem 组成,如下所示: [Header1, S
这个问题在这里已经有了答案: Multiple assignment and evaluation order in Python (11 个答案) 关闭 6 年前。 我刚接触python所以想问你
我试图找到一种方法来在 R 中获取 A、A、A、A、B、B、B、B、B 的所有可能的唯一排列的列表。 组合最初被认为是获得解决方案的方法,因此组合的答案。 最佳答案 我认为这就是你所追求的。 @bil
我怎样才能将两个给定的向量混合成一个新的向量,它以交替的顺序保存它们的值。 (f [a a] [b b]) ; > [a b a b] 这是我想到的: (flatten (map vector [:a
这是我的第一个问题,我开始学习Python。之间有区别吗: a, b = b, a + b 和 a = b b = a + b 当您在下面的示例中编写它时,它会显示不同的结果。 def fib(n):
这个问题在这里已经有了答案: Why is there an injected class name? (1 个回答) 12 个月前关闭。 我不知道如何解释: namespace A { struct
我尝试了一些代码来交换 Java 中的两个整数,而不使用第三个变量,使用 XOR。 这是我尝试过的两个交换函数: package lang.numeric; public class SwapVars
假设类 B 扩展类 A,并且我想为 B 声明一个变量。什么更有效?为什么? B b或 A b . 最佳答案 您混淆了两个不同的概念。 class B extends A { } 意味着B 是 A .
我不确定这个问题的标题是什么,这也可能是一个重复的问题。所以请相应地指导。 我是 python 编程的新手。我有这个简单的代码来生成斐波那契数列。 1: def fibo(n): 2: a =
我在谷歌上搜索了有关 dynamic_cast 的内容,我发现显式地将基类对象转换为派生类指针可能是不安全的。但是当我运行一些示例代码来检查它时,我没有收到任何错误。请在下面找到我的代码: class
这个问题在这里已经有了答案: What is this weird colon-member (" : ") syntax in the constructor? (14 个答案) 关闭 8 年前。
在不重现产生非整数值的表达式的情况下实现以下目标的惯用方法是什么(在我的真实情况下,该值是在我不想重现的冗长查询之后计算为百分比的): SELECT * FROM SomeTable WHERE 1/
在析构中,这两个代码的结果确实不同。我不确定为什么。 提示说 const [b,a] = [a,b] 将导致 a,b 的值为 undefined (从左到右的简单分配规则)。我不明白为什么会这样。 l
C++ Templates - The Complete Guide, 2nd Edition介绍max模板: template T max (T a, T b) { // if b < a th
我最近开始学习代码(Java),并根据第 15.17.3 节在 Oracle 网站上查找了模运算符。以下链接: http://docs.oracle.com/javase/specs/jls/se8/
无法理解以下行为。 d1 := &data{1}; 的区别d1 和 d2 := 数据{1}; &d1。两者都是指针,对吧?但他们的行为不同。这里发生了什么 package main import "f
这个问题在这里已经有了答案: How to make loop infinite with "x = y && x != y"? (4 个回答) How can i define variables
在我的程序中,当我调试我的代码时,它似乎在我生成的代码中的某处 X1=['[a,a,a]','[b,b,b]'] 还有我生成的其他地方 X2=[[a,a,a],[b,b,b]] 当我想添加这两个列表然
我试图使用递归将两个整数相乘,并意外编写了这段代码: //the original version int multiply(int a, int b) { if ( !b ) retu
我有一个列表中数字之间所有可能的操作组合: list = ['2','7','8'] 7+8*2 8+7*2 2*8+7 2+8*7 2-8*7 8-2/7 etc 我想知道是否可以说像 ('7*2+
我是一名优秀的程序员,十分优秀!