gpt4 book ai didi

android - 在 proguarding 应用程序但未测试后运行 Espresso

转载 作者:塔克拉玛干 更新时间:2023-11-02 08:43:13 25 4
gpt4 key购买 nike

我启用了:

testBuildType "release"

在 proguard 之后运行 espresso-tests - 但我遇到了 mockito 的问题。我可以为测试代码禁用混淆器吗?或者即使我将其添加到我的 proguard-config 中,任何人都能看到原因:

-dontwarn org.mockito.**
-dontwarn sun.reflect.**
-dontwarn android.test.**

它仍然失败:

Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanCopier$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanGenerator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanGenerator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanGenerator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanGenerator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanGenerator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$1: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$1: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$1: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$3: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$3: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.BeanMapEmitter$3: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.beans.ImmutableBean$Generator: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.IntrospectionException
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.Introspector
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.Introspector
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.mockito.cglib.core.ReflectUtils: can't find referenced class java.beans.IntrospectionException
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.Task
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.Task
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced method 'org.apache.tools.ant.Project getProject()' in program class org.mockito.cglib.transform.AbstractProcessTask
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.DirectoryScanner
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.DirectoryScanner
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.BuildException
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.BuildException
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.types.FileSet
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.DirectoryScanner
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find referenced class org.apache.tools.ant.Project
Warning: org.mockito.cglib.transform.AbstractTransformTask: can't find referenced method 'void log(java.lang.String,int)' in program class org.mockito.cglib.transform.AbstractTransformTask
Warning: org.mockito.cglib.transform.AbstractTransformTask: can't find referenced method 'void log(java.lang.String)' in program class org.mockito.cglib.transform.AbstractTransformTask

--

这里记录更多的警告:

Warning: org.hamcrest.integration.EasyMock2Adapter: can't find superclass or interface org.easymock.IArgumentMatcher
Warning: org.hamcrest.integration.JMock1Adapter: can't find superclass or interface org.jmock.core.Constraint
Warning: org.mockito.cglib.transform.AbstractProcessTask: can't find superclass or interface org.apache.tools.ant.Task
Warning: library class android.test.AndroidTestCase extends or implements program class junit.framework.TestCase
Warning: library class android.test.AndroidTestRunner extends or implements program class junit.runner.BaseTestRunner
Warning: library class android.test.InstrumentationTestCase extends or implements program class junit.framework.TestCase
Warning: library class android.test.InstrumentationTestSuite extends or implements program class junit.framework.TestSuite
Warning: library class android.test.suitebuilder.TestSuiteBuilder$FailedToCreateTests extends or implements program class junit.framework.TestCase
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$1: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
Warning: android.support.test.espresso.core.deps.guava.cache.Striped64$Cell: can't find referenced class sun.misc.Unsafe
Warning: Warning: android.support.test.runner.MonitoringInstrumentation: can't find referenced method 'android.app.Instrumentation$ActivityResult execStartActivity(android.content.Context,android.os.IBinder,android.os.IBinder,android.app.Activity,android.content.Intent,int)' in program class android.support.test.internal.runner.hidden.ExposedInstrumentationApi
Warning: android.support.test.runner.MonitoringInstrumentation: can't find referenced method 'android.app.Instrumentation$ActivityResult execStartActivity(android.content.Context,android.os.IBinder,android.os.IBinder,android.app.Activity,android.content.Intent,int,android.os.Bundle)' in program class android.support.test.internal.runner.hidden.ExposedInstrumentationApi
Warning: android.support.test.runner.MonitoringInstrumentation: can't find referenced method 'android.app.Instrumentation$ActivityResult execStartActivity(android.content.Context,android.os.IBinder,android.os.IBinder,android.app.Fragment,android.content.Intent,int,android.os.Bundle)' in program class android.support.test.internal.runner.hidden.ExposedInstrumentationApi
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: com.squareup.javawriter.JavaWriter: can't find referenced class javax.lang.model.element.Modifier
Warning: org.assertj.core.internal.JavaBeanDescriptor: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.JavaBeanDescriptor: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.JavaBeanDescriptor: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.JavaBeanDescriptor: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.PropertySupport: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.PropertySupport: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.DebuggingClassWriter$1: can't find referenced class org.assertj.core.internal.cglib.asm.util.TraceClassVisitor
Warning: org.assertj.core.internal.cglib.core.DebuggingClassWriter$1: can't find referenced class org.assertj.core.internal.cglib.asm.util.TraceClassVisitor
Warning: org.assertj.core.internal.cglib.core.DebuggingClassWriter$1: can't find referenced class org.assertj.core.internal.cglib.asm.util.TraceClassVisitor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.IntrospectionException
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.Introspector
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.Introspector
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.internal.cglib.core.ReflectUtils: can't find referenced class java.beans.IntrospectionException
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.Introspector
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.Introspector
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.PropertyDescriptor
Warning: org.assertj.core.util.introspection.Introspection: can't find referenced class java.beans.BeanInfo
Warning: org.assertj.core.util.xml.XmlStringPrettyFormatter: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: org.assertj.core.util.xml.XmlStringPrettyFormatter: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: org.assertj.core.util.xml.XmlStringPrettyFormatter: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: org.assertj.core.util.xml.XmlStringPrettyFormatter: can't find referenced class org.w3c.dom.bootstrap.DOMImplementationRegistry
Warning: org.hamcrest.JMock1Matchers: can't find referenced class org.jmock.core.Constraint
Warning: org.hamcrest.beans.HasPropertyWithValue: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.HasPropertyWithValue$2: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.Introspector
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.BeanInfo
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.IntrospectionException
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.Introspector
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.BeanInfo
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.IntrospectionException
Warning: org.hamcrest.beans.PropertyUtil: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.beans.SamePropertyValuesAs$PropertyMatcher: can't find referenced class java.beans.PropertyDescriptor
Warning: org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.EasyMock
Warning: org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.IArgumentMatcher
Warning: org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.EasyMock
Warning: org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.IArgumentMatcher
Warning: org.hamcrest.integration.EasyMock2Adapter: can't find referenced class org.easymock.IArgumentMatcher
Warning: org.hamcrest.integration.JMock1Adapter: can't find referenced class org.jmock.core.Constraint
Warning: org.hamcrest.integration.JMock1Adapter: can't find referenced class org.jmock.core.Constraint
Warning: org.hamcrest.integration.JMock1Adapter: can't find referenced class org.jmock.core.Constraint
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ManagementFactory
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ManagementFactory
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning: org.junit.internal.runners.statements.FailOnTimeout: can't find referenced class java.lang.management.ThreadMXBean
Warning: org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.ManagementFactory
Warning: org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.RuntimeMXBean
Warning: org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.ManagementFactory
Warning: org.junit.rules.DisableOnDebug: can't find referenced class java.lang.management.RuntimeMXBean
Warning: org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactoryInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator: can't find referenced class sun.reflect.ReflectionFactory
Warning: org.objenesis.instantiator.sun.SunReflectionFactorySerializationInstantiator: can't find referenced class sun.reflect.ReflectionFactory

理想情况下,我想禁用对测试代码的保护 - 但对 app-apk 的保护对我来说很重要,因为这会测试 proguard-config/result

最佳答案

如果您有一个应用于调试构建的自定义混淆器文件,您可能还想将它应用于测试构建:

        testProguardFile 'proguard-rules-test.pro'

关于android - 在 proguarding 应用程序但未测试后运行 Espresso ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35469830/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com