2013-06-11 2 views
2

는 socialauth - 안드로이드 사용 :socialauth - 안드로이드 : 난독 화 오류 APK 내보낼 때 나는 이러한 경고 얻을 내 프로젝트를 내보낼 때

Warning: org.brickred.socialauth.util.SocialAuthUtil: can't find referenced class javax.servlet.http.HttpServletRequest 
    Warning: there were 111 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. 
    Warning: there were 140 unresolved references to program class members. 
       Your input classes appear to be inconsistent. 
       You may need to recompile the code or update the library versions. 
       Alternatively, you may have to specify the option 
       '-dontskipnonpubliclibraryclassmembers'. 
    java.io.IOException: Please correct the above warnings first. 
     at proguard.Initializer.execute(Initializer.java:330) 
     at proguard.ProGuard.initialize(ProGuard.java:212) 
     at proguard.ProGuard.execute(ProGuard.java:87) 
     at proguard.ProGuard.main(ProGuard.java:484) 

은 누군가가 도움이 될 수 있습니까?

답변

6

문제는이 난독의 CFG를 사용하여 사라된다

-keep class org.brickred.** { *; } -dontwarn org.brickred.** 
+0

위대한 !! 너는 내 하루를 만들었다 !! – swiftBoy

+0

안녕하세요 저는 proguard에 처음입니다. 어디서나이 라인을 유지해야합니다. – ManiTeja

0

lib에 직접 jar 파일이 있습니까? 아니면 녀석을 데리고 오는거야? 어떤 sdk 버전을 실행하고 있습니까?

컴파일시 jar를 추가하면 proguard 처리에 jar가 포함되지 않을 수 있습니다. 항아리는 사전 구축 대상이 실행 된 후에 제 위치에 있어야합니다.

+0

내가 libs와 직접 항아리를 넣어. 최신 SDT v2.5를 사용하고 있습니다. – stepic

+0

어떤 안드로이드 SDK를 사용하고 있습니까? 최신 버전은 r22입니다. r16 +에서 몇 가지 중요한 변화가있었습니다. 프로젝트가 하나의 단일 응용 프로그램입니까? 또는 app -> library project -> external libs로 구조화되어 있습니까? – roostertech

+0

최신 Android SDK로 구축 중이며 외부 라이브러리로 social-auth 및 socialauth-android jars가 있습니다 – stepic

관련 문제