- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我真的很想在我的应用程序中使用此 Proguard
功能,但看到那一千条警告让我怀疑它是否值得......我应该添加什么才能成功构建?或者让我知道这是否是失败的原因...
这是我的 Gradle
文件:
(...)
buildTypes {
release {
minifyEnabled true
shrinkResources true
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE-FIREBASE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/services/javax.annotation.processing.Processor'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
lintOptions {
disable 'InvalidPackage'
disable 'LongLogTag'
}
dexOptions {
jumboMode = true
javaMaxHeapSize "4g"
}
productFlavors {
// Define separate dev and prod product flavors.
dev {
// dev utilizes minSDKVersion = 21 to allow the Android gradle plugin
// to pre-dex each module and produce an APK that can be tested on
// Android Lollipop without time consuming dex merging processes.
minSdkVersion 16
targetSdkVersion 19
}
prod {
// The actual minSdkVersion for the application.
minSdkVersion 16
targetSdkVersion 21
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:multidex:1.0.0'
compile "com.android.support:appcompat-v7:${supportLibVersion}"
compile 'com.android.support:percent:23.4.0'
compile("com.android.support:design:${supportLibVersion}") {
exclude module: 'support-v4'
}
compile("com.android.support:cardview-v7:${supportLibVersion}") {
exclude module: 'support-v4'
}
compile 'com.google.android.gms:play-services-gcm:8.4.0'
compile('com.firebase:firebase-client-android:2.4.0') {
exclude module: 'jackson-databind'
}
compile('com.github.nkzawa:socket.io-client:0.4.1') {
exclude group: 'org.json', module: 'json'
}
compile('com.astuetz:pagerslidingtabstrip:1.0.1') {
exclude module: 'support-v4'
}
compile('com.google.android.gms:play-services-location:8.4.0') {
exclude module: 'support-v4'
}
// This one use Maven : url "https://jitpack.io"
compile('org.glassfish.jersey.media:jersey-media-json-jackson:2.22.2') {
exclude group: 'javax.inject', module: 'javax.inject'
}
compile('com.github.jakob-grabner:Circle-Progress-View:v1.2.9') {
exclude group: 'support-annotations'
}
compile('com.github.ganfra:material-spinner:1.1.1') {
exclude group: 'com.android.support', module: 'appcompat-v7'
exclude group: 'com.android.support', module: 'support-v4'
}
compile 'com.jakewharton:butterknife:7.0.1'
compile 'commons-io:commons-io:2.4'
compile 'info.guardianproject.iocipher:IOCipher:0.3'
compile 'org.apache.commons:commons-lang3:3.4'
compile ("com.squareup.retrofit2:retrofit:2.0.0"){
exclude module: 'okhttp'
}
compile ("com.squareup.retrofit2:converter-jackson:2.0.0"){
exclude module: 'okhttp'
}
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.amazonaws:aws-android-sdk-sns:2.+'
compile 'com.github.rtoshiro.securesharedpreferences:securesharedpreferences:1.0.+'
compile 'de.hdodenhof:circleimageview:2.0.0'
compile 'com.felipecsl.asymmetricgridview:library:1.1.0'
compile 'com.joanzapata.android:android-iconify:1.0.9'
compile 'com.koushikdutta.async:androidasync:2.+'
compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.4'
compile 'com.squareup.okhttp3:logging-interceptor:3.0.1'
compile 'com.github.johnpersano:supertoasts:1.3.4@aar'
compile 'com.github.ybq:Android-SpinKit:1.0.3'
compile 'com.timehop.stickyheadersrecyclerview:library:0.4.3@aar'
compile 'com.bigkoo:pickerview:2.0.8'
compile 'com.takwolf.android:lock9view:0.0.11'
compile 'com.kyleduo.switchbutton:library:1.4.0'
compile 'com.hanks.animatecheckbox:library:0.1'
compile 'com.code-troopers.betterpickers:library:2.5.5'
}
apply plugin: ('com.google.gms.google-services')
这是我的 proguard-rule.pro 文件:
##########################
# RETROFIT #
##########################
# Add any project specific keep options here:
-dontwarn retrofit2.**
-keep class retrofit2.** { *; }
-keepattributes Signature
-keepattributes Exceptions
-keepattributes Annotation
##########################
# BUTTERKNIFE #
##########################
-keep class butterknife.** { *; }
-dontwarn butterknife.internal.**
-keep class **$$ViewBinder { *; }
-keepclasseswithmembernames class * {
@butterknife.* <fields>;
}
-keepclasseswithmembernames class * {
@butterknife.* <methods>;
}
##########################
# JACKSON-PARSER #
##########################
-keepattributes *Annotation*,EnclosingMethod,Signature
-keepnames class com.fasterxml.jackson.** { *; }
-dontwarn com.fasterxml.jackson.databind.**
-keep class org.codehaus.** { *; }
-keepclassmembers public final enum org.codehaus.jackson.annotate.JsonAutoDetect$Visibility {
public static final org.codehaus.jackson.annotate.JsonAutoDetect$Visibility *; }
-keep public class your.class.** {
public void set*(***);
public *** get*();
}
-assumenosideeffects class android.util.Log {
public static *** d(...);
public static *** v(...);
public static *** i(...);
public static *** w(...);
public static *** e(...);
public static *** wtf(...);
}
那些是剩下的警告:
(…)
Warning:com.fasterxml.jackson.module.jaxb.deser.DataHandlerJsonDeserializer$1: can't find superclass or interface javax.activation.DataSource
Warning:javax.ws.rs.core.Link$JaxbAdapter: can't find superclass or interface javax.xml.bind.annotation.adapters.XmlAdapter
Warning:org.glassfish.hk2.osgiresourcelocator.Activator: can't find superclass or interface org.osgi.framework.BundleActivator
Warning:org.glassfish.hk2.osgiresourcelocator.ServiceLoaderImpl$BundleTracker: can't find superclass or interface org.osgi.framework.BundleListener
Warning:org.glassfish.jersey.internal.OsgiRegistry: can't find superclass or interface org.osgi.framework.SynchronousBundleListener
Warning:org.glassfish.jersey.message.internal.DataSourceProvider$ByteArrayDataSource: can't find superclass or interface javax.activation.DataSource
Warning:com.fasterxml.jackson.module.jaxb.AdapterConverter: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlElement
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlRootElement
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlElement
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlAttribute
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlValue
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector: can't find referenced class javax.xml.bind.annotation.XmlElements
Warning:com.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector$1: can't find referenced class javax.xml.bind.annotation.XmlAccessType
Warning:com.fasterxml.jackson.module.jaxb.deser.DataHandlerJsonDeserializer: can't find referenced class javax.activation.DataHandler
Warning:com.fasterxml.jackson.module.jaxb.deser.DataHandlerJsonDeserializer$1: can't find referenced class javax.activation.DataSource
Warning:com.fasterxml.jackson.module.jaxb.ser.DataHandlerJsonSerializer: can't find referenced class javax.activation.DataHandler
Warning:com.felipecsl.asymmetricgridview.library.widget.AnimatorProxy: can't find referenced method 'float floor(float)' in library class android.util.FloatMath
Warning:com.felipecsl.asymmetricgridview.library.widget.AnimatorProxy: can't find referenced method 'float ceil(float)' in library class android.util.FloatMath
Warning:com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
Warning:com.google.common.base.Equivalences$Impl$1: can't find referenced class javax.annotation.Nullable
Warning:com.google.common.base.Equivalences$Impl$2: can't find referenced class javax.annotation.Nullable
Warning:com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
Warning:com.google.common.base.Functions: can't find referenced class javax.annotation.Nullable
Warning:com.google.common.base.Functions$ConstantFunction: can't find referenced class javax.annotation.Nullable
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Cache
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.CacheControl$Builder
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Request$Builder
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.OkHttpClient
Warning:com.squareup.picasso.OkHttpDownloader: can't find referenced class com.squareup.okhttp.Call
Warning:javassist.tools.rmi.ObjectImporter: can't find referenced class java.applet.Applet
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.connect.AttachingConnector
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.connect.Connector$Argument
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.connect.AttachingConnector
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.VirtualMachine
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.Bootstrap
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.VirtualMachineManager
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.connect.Connector
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.event.EventQueue
Warning:javassist.util.HotSwapper: can't find referenced class com.sun.jdi.VirtualMachine
Warning:javax.ws.rs.core.Link$JaxbAdapter: can't find referenced class javax.xml.bind.annotation.adapters.XmlAdapter
Warning:javax.ws.rs.core.Link$JaxbLink: can't find referenced class javax.xml.bind.annotation.XmlAttribute
Warning:javax.ws.rs.core.Link$JaxbLink: can't find referenced class javax.xml.bind.annotation.XmlAnyAttribute
Warning:jersey.repackaged.com.google.common.base.Absent: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Converter: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Equivalence: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Function: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Joiner: can't find referenced class javax.annotation.CheckReturnValue
Warning:jersey.repackaged.com.google.common.base.Joiner$1: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.MoreObjects: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.MoreObjects$ToStringHelper: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Objects: can't find referenced class javax.annotation.CheckReturnValue
Warning:jersey.repackaged.com.google.common.base.Objects: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Predicates$ObjectPredicate$3: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Predicates$ObjectPredicate$4: can't find referenced class javax.annotation.Nullable
Warning:jersey.repackaged.com.google.common.base.Predicates$OrPredicate: can't find referenced class javax.annotation.Nullable
Warning:okio.DeflaterSink: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:okio.Okio: can't find referenced class java.nio.file.Files
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class java.nio.file.Path
Warning:okio.Okio: can't find referenced class java.nio.file.OpenOption
Warning:okio.Okio: can't find referenced class org.codehaus.mojo.animal_sniffer.IgnoreJRERequirement
Warning:org.glassfish.hk2.osgiresourcelocator.Activator: can't find referenced class org.osgi.framework.BundleActivator
Warning:org.glassfish.hk2.osgiresourcelocator.Activator: can't find referenced class org.osgi.framework.BundleContext
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.BundleReference
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.BundleContext
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.BundleContext
Warning:org.glassfish.hk2.osgiresourcelocator.ResourceFinderImpl: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.hk2.utilities.reflection.BeanReflectionHelper: can't find referenced class java.beans.Introspector
Warning:org.glassfish.jersey.internal.OsgiRegistry: can't find referenced class org.osgi.framework.BundleReference
Warning:org.glassfish.jersey.internal.OsgiRegistry: can't find referenced class org.osgi.framework.FrameworkUtil
Warning:org.glassfish.jersey.internal.OsgiRegistry: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.jersey.internal.OsgiRegistry: can't find referenced class org.osgi.framework.BundleEvent
Warning:org.glassfish.jersey.internal.OsgiRegistry$2: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.jersey.internal.OsgiRegistry$BundleSpiProvidersLoader: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.jersey.internal.util.ReflectionHelper: can't find referenced class org.osgi.framework.FrameworkUtil
Warning:org.glassfish.jersey.internal.util.ReflectionHelper: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.jersey.internal.util.ReflectionHelper: can't find referenced class org.osgi.framework.FrameworkUtil
Warning:org.glassfish.jersey.internal.util.ReflectionHelper: can't find referenced class org.osgi.framework.Bundle
Warning:org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8$1: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.internal.util.collection.ConcurrentHashMapV8$TreeBin: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.internal.util.collection.LinkedTransferQueue: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.internal.util.collection.LinkedTransferQueue$1: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.internal.util.collection.LinkedTransferQueue$Node: can't find referenced class sun.misc.Unsafe
Warning:org.glassfish.jersey.message.filtering.SecurityEntityFilteringFeature: can't find referenced class org.glassfish.jersey.server.filter.RolesAllowedDynamicFeature
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.ExtendedUriInfo
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.model.ResourceMethod
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.model.Invocable
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.model.MethodHandler
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.ExtendedUriInfo
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.model.ResourceMethod
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.ExtendedUriInfo
Warning:org.glassfish.jersey.message.filtering.ServerScopeProvider: can't find referenced class org.glassfish.jersey.server.model.ResourceMethod
Warning:org.glassfish.jersey.message.filtering.spi.FilteringHelper: can't find referenced class javax.xml.bind.JAXBElement
Warning:org.glassfish.jersey.message.internal.DataSourceProvider: can't find referenced class javax.activation.DataSource
Warning:org.glassfish.jersey.message.internal.DataSourceProvider$ByteArrayDataSource: can't find referenced class javax.activation.DataSource
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class java.awt.image.RenderedImage
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class java.awt.image.BufferedImage
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class javax.imageio.ImageIO
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class javax.imageio.ImageReader
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class javax.imageio.ImageIO
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class javax.imageio.ImageReader
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class java.awt.image.RenderedImage
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class javax.imageio.ImageWriter
Warning:org.glassfish.jersey.message.internal.RenderedImageProvider: can't find referenced class java.awt.image.RenderedImage
(…)
Note: there were 4 references to unknown classes.
You should check your configuration for typos.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unknownclass)
Note: there were 11 classes trying to access enclosing classes using reflection.
You should consider keeping the inner classes attributes
(using '-keepattributes InnerClasses').
(http://proguard.sourceforge.net/manual/troubleshooting.html#attributes)
Note: there were 143 unkept descriptor classes in kept class members.
You should consider explicitly keeping the mentioned classes
(using '-keep').
(http://proguard.sourceforge.net/manual/troubleshooting.html#descriptorclass)
Note: there were 30 unresolved dynamic references to classes or interfaces.
You should check if you need to specify additional program jars.
(http://proguard.sourceforge.net/manual/troubleshooting.html#dynamicalclass)
Warning:there were 1911 unresolved references to classes or interfaces.
You may need to add missing library jars or update their versions.
If your code works fine without the missing classes, you can suppress
the warnings with '-dontwarn' options.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedclass)
Warning:there were 2 unresolved references to library class members.
You probably need to update the library versions.
(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)
Warning:Exception while processing task java.io.IOException: Please correct the above warnings first.
:app:transformClassesAndResourcesWithProguardForProdRelease FAILED
Error:Execution failed for task ':app:transformClassesAndResourcesWithProguardForProdRelease'.
> java.io.IOException: Please correct the above warnings first.
Information:BUILD FAILED
Information:Total time: 7.152 secs
Information:1 error
Information:901 warnings
Information:See complete output in console
最佳答案
我通常需要告诉混淆器保留第三方库才能成功构建。例如,我为 Okio 和 fasterxml 添加了以下内容:
-keep class okio.** { *; }
-dontwarn okio.**
-keep class com.fasterxml.** { *; }
-dontwarn com.fasterxml.**
为项目中包含的每个第三方库添加以上内容。从您的日志中,我看到了 glassfish、jersey、squareup、google、Okio 和 fasterxml。
以下是有关上述混淆器规则的更多信息:
Android Proguard - is it best practice to -keep all 3rd party libs?
关于android - 使用 Proguard 构建时出现多个警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37444544/
https://www.guardsquare.com/en/proguard/manual/optimizations说 class/unboxing/enum Simplifies enum ty
我想使用 ProGuard 重命名变量和函数。我希望生成的类文件在所有方面都与源 jar 相同,除了名称。有没有办法做到这一点? 我尝试使用 dontoptimize 和 dontshrink 无效。
例如,这条规则在 proguard 中意味着什么: -keep class myjava.** {*;} 我理解 {*;} 部分意味着类中的所有成员和方法。但是包名中的 2 个星号是什么意思? 提前致
我有一个即将使用 ProGuard 混淆的库。 “图书馆模式”几乎适用于我的用例,即保留所有公共(public)和 protected 类和类成员几乎没问题。 然而,由于 Java 的可见性要求,一些
在我的 Playstore 中,我注意到去混淆后的代码包含相当多的 在堆栈跟踪中。 (例如 at .onAttach(ProfileLandingFragment.java) )。 有什么用真正意思?
我收到了一封来自 Google 的关于 unsafe implementation of TrustManager 的电子邮件唯一的线索是有问题的代码在 com.b.a.af 类中。显然,这是混淆的名
我读自 http://proguard.sourceforge.net/manual/usage.html关于assumenosideeffects的使用。我的问题涉及以下段落: -assumenos
什么是智能 ProGuard 配置来混淆特定类 com.acme.Algorithm 的私有(private)方法和常量? 我想对此进行混淆,因为它包含一个算法,当意外打开 .jar 时,该算法不应该
最近将 Pushwoosh 库集成到我的 Android 应用程序中。它运作良好。但是在导出为签名应用程序时遇到以下错误。请帮忙。提前致谢。 Proguard returned with error
有没有人有使用ProGuard的经验是否已经有超出类加载时间的应用程序性能测量? 我有一个相当复杂的应用程序,可能需要改进,但为 ProGuard 准备它需要几天时间,所以我想先听听一些意见。 最佳答
当我尝试使用 android studio 3.2 canary 17 构建应用程序包时,我收到以下错误消息。我不知道我所有的 proguard 文件中缺少什么角括号,一切似乎都很好,并且在旧版本的
我遇到了 proguard 的问题,我刚刚配置了 Bugsense 并且使用了它们的配置建议,我在 google 和 stackoverflow 上进行了搜索,通常 ppl 可以在控制台中看到该行或问
我第一次尝试使用 Proguard,我收到此错误,有人可以帮我吗?谢谢 [2014-09-03 11:44:58 - P - Photos] Proguard returned with error
当我收到此错误时,我正在尝试导出启用了 proguard 的 android 应用程序:- Proguard returned with error code 1. See console pro
看起来有两个用于运行 ProGuard 的 SBT 插件。任何人都可以谈谈他们的相对优势和劣势吗?我还没有在网上找到比较。 xsbt-proguard-plugin - https://github.
Proguard 会条纹 kotlin.Unit 独立对象(在 Kotlin 运行时库中),如果您使用此类型,则会导致编译错误。以下规则无助于保留此元素(可能是因为 Unit 不是一个类,它是一个对象
构建 Android 发行版 apk 时,Smack 4.1 的正确 ProGuard 规则是什么? 目前,我正在使用 aSmack github 存储库上 README.asmack 文件中的 aS
尝试使用 Proguard Maven 插件时出现 OutOfMemoryErrors。我尝试通过将 MAVEN_OPTS 环境变量设置为 -Xmx2g 来为 Maven 分配更多内存,但这没有任何区
我有一个 pom.xml 文件如下。当我运行 mvn clean install 时,出现错误 [proguard] Error: Can't read [C:\Program Files\Java\
我已经将支持库从 v22.2.1 更新到 v23.0.0,在构建应用程序后(使用 minifyEnabled true)我有“AppCompat 不支持当前主题功能”异常: 08-23 05:46:1
我是一名优秀的程序员,十分优秀!