android 代碼混淆(jar包混淆)

跟着網址 http://java-server.iteye.com/blog/1166114 開始android jar包的代碼混淆時,總是報 
can't find referenced class com.mixpanel.android.R$layout 
[proguard] Warning: com.mixpanel.android.surveys.SurveyActivity: 
can't find referenced class com.mixpanel.android.R$layout 
[proguard] Warning: com.mixpanel.android.surveys.SurveyActivity: 
can't find referenced class com.mixpanel.android.R$id 
[proguard] Warning: com.mixpanel.android.surveys.SurveyActivity: 
can't find referenced class com.mixpanel.android.R$id 
[proguard] Warning: com.mixpanel.android.surveys.SurveyActivity: 
can't find referenced class com.mixpanel.android.R$id
  

  

  
  
  
  
  
  

   
 
   
 
   
   
   
   
   
   

   
 
   
 
   
   
   
   
   
   

   
 
   
 
   
   
   
   
   
  

  

  
  
  
  
  
  
無法完成混淆過程,此時只須要在.pro文件裏面添加-dontwarn com.mixpanel.android.R* 便可,成功混淆。記錄一下。參考文章http://lenciel.cn/2012/02/integration-of-proguard-and-maven-in-android-projects/http://blog.csdn.net/u_xtian/article/details/7495023
相關文章
相關標籤/搜索