Autore Topic: Proguard problema con FragmentActivity  (Letto 866 volte)

Offline oibaf79

  • Nuovo arrivato
  • *
  • Post: 26
  • Respect: +1
    • Mostra profilo
Proguard problema con FragmentActivity
« il: 18 Maggio 2012, 11:44:16 CEST »
0
Ciao a tutti,

ho un problema con proguard, voglio solo offuscare il codice senza ottimizzarlo ma mi restituisce i seguenti warnings su una FragmentActivity (Detail):

Warning: Detail: can't find referenced method 'void setContentView(android.view.View)' in class Detail
Warning: Detail: can't find referenced method 'android.content.Intent getIntent()' in class Detail
Warning: Detail: can't find referenced method 'android.view.View findViewById(int)' in class Detail
Warning: Detail: can't find referenced method 'android.support.v4.app.FragmentManager getSupportFragmentManager()' in class Detail
Warning: Detail: can't find referenced method 'void startSearch(java.lang.String,boolean,android.os.Bundle,boolean)' in class Detail
Warning:Detail: can't find referenced method 'android.content.Context getApplicationContext()' in class Detail
Warning: Detail: can't find referenced method 'void startActivity(android.content.Intent)' in class Detail
Warning: Detail: can't find referenced method 'void overridePendingTransition(int,int)' in class Detail
Warning: Detail: can't find referenced method 'java.lang.String getString(int)' in class Detail
Warning: Detail: can't find referenced method 'void finish()' in class Detail
Warning: ViewPagerFragment: can't find referenced method 'void setArguments(android.os.Bundle)' in class ViewPagerFragment
Warning: ViewPagerFragment: can't find referenced method 'android.os.Bundle getArguments()' in class ViewPagerFragment
Warning: ViewPagerFragment$3: can't find referenced method 'android.content.res.Resources getResources()' in class ViewPagerFragment
Warning: ViewPagerFragment$3: can't find referenced method 'void startActivity(android.content.Intent)' in class ViewPagerFragment
Warning: there were 14 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'.
java.io.IOException: Please correct the above warnings first.
at proguard.Initializer.execute(Initializer.java:321)
at proguard.ProGuard.initialize(ProGuard.java:211)
at proguard.ProGuard.execute(ProGuard.java:86)
at proguard.ProGuard.main(ProGuard.java:492)

Qualcuno potrebbe darmi qualche indicazione su come evitare questi warnings? (mi andrebbe bene anche di escludere la class dall'offuscamento).


Grazie