2016-10-09 3 views
1

남자입니다. 내가 (그 504) 이러한 오류를 얻을 :익명의 내부 클래스에 대한 InnerClasses 특성을 무시합니다. org.apache

Error:warning: Ignoring InnerClasses attribute for an anonymous inner class 
Error:(org.apache.log4j.chainsaw.ControlPanel$7) that doesn't come with an 
Error:associated EnclosingMethod attribute. This class was probably produced by a 
Error:compiler that did not target the modern .class file format. The recommended 
Error:solution is to recompile the class from source, using an up-to-date compiler 
Error:and without specifying any "-target" type options. The consequence of ignoring 
Error:this warning is that reflective operations on this class will incorrectly 
Error:indicate that it is *not* an inner class. 

나는 난독 화에

-keepattributes InnerClasses, EnclosingMethod 
-dontoptimize 

는 그러나, 나는 아직이 오류를 얻을했습니다. 내가 사용

useLibrary 'org.apache.http.legacy' 
dependencies { 
    compile 'org.apache.httpcomponents:httpclient-android:4.3.5.1' 
} 

모든 것은 잘 작동한다.이 오류는 apk를 생성 할 때만 나타난다. 그러나 APK는 잘 작동합니다. 이러한 오류를 제거하려면 어떻게해야합니까?

답변

1

아래 추가 프로 가드 파일 릴리스 빌드,하지만 디버그 빌드에 대한 해결

-dontwarn org.apache.** 
-keep class org.apache.http.** { *; } 
+1

속성을? –