0 امتیاز
قبل در برنامه نویسی توسط (193 امتیاز)

در دستور 

-libraryjars   [  path  ]\libs\universal-image-loader-1.9.3.jar'

مسیر jar file باید چطوری نوشته شود؟

من 4 تا library دارم  و به شکل زیر آنها را در pruguard اضافه کرده ام

-libraryjars 'I:\Workspace\MyApp\libs\universal-image-loader-1.9.3.jar'
-libraryjars 'I:\Workspace\MyApp\libs\gson-2.3.jar'
-libraryjars 'I:\Workspace\MyApp\libs\disklrucache-1.3.1.jar'
-libraryjars 'I:\Workspace\MyApp\libs\android-support-v4.jar'
ولی زمان export خطای زیر نمایش داده میشود
Warning: there were 3 unresolved references to program class members.
          Your input classes appear to be inconsistent.
          You may need to recompile them and try again.
          Alternatively, you may have to specify the option 
           '-dontskipnonpubliclibraryclassmembers'.

 

علاوه بر خطای فوق با توجه به اینکه 

-keep class se.emilsjolander.** { *; } -dontwarn se.emilsjolander.**
-keep class com.emilsjolander.** { *; } -dontwarn com.emilsjolander.**

را اضافه کرده ام خطای 

Warning: com.emilsjolander.components.stickylistheaders.StickyListHeadersListView: can't find referenced method 'int getLayoutDirection()' in class com.emilsjolander.components.stickylistheaders.StickyListHeadersListView
 Warning: com.emilsjolander.components.stickylistheaders.StickyListHeadersListView: can't find referenced method 'void setLayoutDirection(int)' in class android.view.View
 Warning: org.apache.http.conn.ssl.SSLConnectionSocketFactory: can't find referenced method 'void setHostname(java.net.Socket,java.lang.String)' in class android.net.SSLCertificateSocketFactory

نمایش داده میشود. اگر ممکن است راهنمایی کنید

1 پاسخ

+1 امتیاز
قبل توسط (193 امتیاز)
 
بهترین پاسخ

با اضافه کردن موارد زیر مشکل اضافه کردن jar  فایل ها به proguard  حل شد و export با موفقیت انجام شد

-injars bin/classes
-injars libs
-outjars bin/classes-processed.jar

-libraryjars 'libs\universal-image-loader-1.9.3.jar'
-libraryjars 'libs\gson-2.3.jar'
-libraryjars 'libs\disklrucache-1.3.1.jar'
-libraryjars 'libs\android-support-v4.jar'

 

سوالات مشابه

+1 امتیاز
0 پاسخ 399 بازدید
0 امتیاز
1 پاسخ 337 بازدید
0 امتیاز
1 پاسخ 3.2هزار بازدید
0 امتیاز
1 پاسخ 674 بازدید
0 امتیاز
1 پاسخ 1.0هزار بازدید
+1 امتیاز
0 پاسخ 366 بازدید
...