2016-02-17 25 views
9

Włączyłem:Running espresso po proguarding aplikację, ale nie przetestować

testBuildType "release" 

uruchomić testy espresso po PROGUARD - ale mam problem z Mockito wtedy. Czy mogę wyłączyć proguard dla kodu testowego? Czy ktoś widzi powodu, nawet gdy dodam to do mojego PROGUARD-config:

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

nadal kończy się niepowodzeniem:

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 

-

dla rekordu tu więcej z ostrzeżenia:

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 

Idealnie chcę wyłączyć proguarding testy kodu - ale proguarding app-apk jest importa nt mi się ten testach PROGUARD-config/wynik

+0

Czy możesz umieścić swój plik gradowy, szczególnie część zależności i plik proguard? Wygląda na to, że twoja biblioteka testowa jest wyłączona, ponieważ plik proguard nie zachowuje ich. – xiaomi

+0

zgodził się, że pliki gradu i proguard będą pomocne ... czy stosujesz mapowanie od progu do aplikacji testowej? – jdonmoyer

Odpowiedz

0

W celu uniknięcia ostrzeżeń PROGUARD związanych com.square dodać tych reguł do pliku PROGUARD:

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

Jeśli plik zwyczaj PROGUARD zastosowane do do debugowania kompilacji, możesz również zastosować go do wersji testowej:

 testProguardFile 'proguard-rules-test.pro'