2016-02-17 3 views
9

I aktiviert:Lauf Espresso nach ca. proguarding aber nicht testen

testBuildType "release" 

die Espresso-Tests nach proguard laufen - aber ich habe ein Problem mit Mockito erhalten dann. Kann ich Proguard für den Testcode deaktivieren? Oder jemand sieht einen Grund, warum auch, wenn ich das meine proguard-config hinzu:

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

es immer noch nicht mit:

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 

-

der Ordnung halber hier das mehr von der Warnungen:

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 

Idealerweise möchte ich proguarding den Test-Code deaktivieren - aber die App-apk proguarding ist importa nt mir vor, als dies testet die proguard-config/Ergebnis

+0

Können Sie Ihre Gradle-Datei, vor allem die Abhängigkeiten Teil und Ihre Proguard-Datei? Es scheint, dass Sie die Test-Bibliothek ausziehen, weil die Proguard-Datei sie nicht hält. – xiaomi

+0

stimmte zu, dass Gradle und Proguard-Dateien hilfreich sein werden ... wenden Sie das Mapping von der Progardierung der App auf die Test-APK an? – jdonmoyer

Antwort

0

Um proguard Warnungen zu vermeiden, im Zusammenhang mit com.square fügen Sie diese Regeln zu Ihrer proguard Datei:

-keep class com.squareup.** { *; } 
-keep interface com.squareup.** { *; } 
-dontwarn com.squareup.** 
-dontnote 
1

Wenn Sie eine benutzerdefinierte proguard-Datei angelegt haben Ihre Debug-Build, möchten Sie möglicherweise auch auf die Test-Build anwenden:

 testProguardFile 'proguard-rules-test.pro'