我想在我们的Android应用程序上运行ProGuard.该应用程序无需ProGuard即可构建并运行良好.
当我将build.gradle更改为"minifyEnabled true"时,我得到了一些警告,我可以通过proguard-rules.pro中的以下内容消除这些警告:
-keep class org.joda.time.** { *; }
-keep class javax.** { *; }
-dontwarn okio.**
-dontwarn javax.naming.**
-dontwarn org.joda.convert.**
-dontwarn org.bouncycastle.crypto.**
Run Code Online (Sandbox Code Playgroud)
现在,当我尝试使用ProGuard进行构建时,我收到以下警告和错误(已编辑以添加错误消息):
Warning:can't write resource [META-INF/COM_CRAS.SF] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/COM_CRAS.SF])
Warning:can't write resource [META-INF/COM_CRAS.RSA] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/COM_CRAS.RSA])
Warning:can't write resource [META-INF/maven/com.squareup.okhttp/okhttp/pom.properties] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/maven/com.squareup.okhttp/okhttp/pom.properties])
Warning:can't write resource [META-INF/maven/com.squareup.okhttp/okhttp/pom.xml] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/maven/com.squareup.okhttp/okhttp/pom.xml])
Warning:can't write resource [META-INF/maven/com.squareup/otto/pom.properties] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/maven/com.squareup/otto/pom.properties])
Warning:can't write resource [META-INF/maven/com.squareup/otto/pom.xml] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/maven/com.squareup/otto/pom.xml])
Warning:can't write resource [META-INF/maven/com.squareup.okhttp/okhttp-protocols/pom.properties] (Duplicate zip entry [crashlytics-1.1.13.jar:META-INF/maven/com.squareup.okhttp/okhttp-protocols/pom.properties]) …Run Code Online (Sandbox Code Playgroud) 我试图找到答案,但迄今为止失败了.
我有一个使用a的活动WebView.显示给用户的所有内容都以HTML和JavaScript呈现.也就是说,WebView它可以占用所有屏幕.APK用于存储某些持久数据并启动WebView.
用户界面底部有一个基于图标的导航菜单(屏幕底部有5个图标),顶部有一些视觉元素(徽标图像和搜索按钮).顶部元素和底部导航栏之间的所有内容都可以根据用户操作进行更改,刷新或更新.可以向左,向右,向上和向下滑动在顶部和底部常量之间显示的各种HTML布局.
问题:
当用户点击屏幕右下方最右侧的导航图标时,整个WebView布局向左移动5-10像素.如果在其左边缘附近点击最右侧的图标,则不会发生这种情况.点击另一个图标会将WebView背部移动到正确的对齐位置.点击最左侧的图标不会导致与右侧类似的行为.在屏幕的任一边缘附近点击活动或非活动HTML元素(可以通过滑动移动)不会导致移位行为.
最初屏幕右侧的区域在WebView移动时充满了白色,我认为它是一个ScrollBar.我已经做了所有的事情ScrollBar并且缩放禁用我可以.现在,当移位发生时,该区域是背景颜色(黑色).
有没有人知道如何锁定烧伤WebView?