matsudakazumi / google-api-java-client

Automatically exported from code.google.com/p/google-api-java-client
0 stars 0 forks source link

Release build for calendar-v2-atom-android-sample FAILS #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Version 1.4.1-beta.

To see Proguard working w/ the google-api I'm attempting to do a release build 
of the calendar-v2-atom-android-sample.  Seeing this build failure:
 ...
 [proguard] Note: org.junit.internal.builders.SuiteMethodBuilder accesses a method 'suite()' dynamically
 [proguard] Note: org.junit.internal.runners.SuiteMethod accesses a method 'suite()' dynamically
 [proguard] Note: junit.runner.BaseTestRunner accesses a method 'suite()' dynamically
 [proguard] Note: com.google.common.base.internal.Finalizer accesses a method 'finalizeReferent()' dynamically
 [proguard]       Maybe this is program method 'com.google.common.base.FinalizableReference { void finalizeReferent(); }'
 [proguard]       Maybe this is program method 'com.google.common.collect.CustomConcurrentHashMap$SoftEntry { void finalizeReferent(); }'
 [proguard]       Maybe this is program method 'com.google.common.collect.CustomConcurrentHashMap$SoftValueReference { void finalizeReferent(); }'
 [proguard]       Maybe this is program method 'com.google.common.collect.CustomConcurrentHashMap$WeakEntry { void finalizeReferent(); }'
 [proguard]       Maybe this is program method 'com.google.common.collect.CustomConcurrentHashMap$WeakValueReference { void finalizeReferent(); }'
 [proguard]       Maybe this is program method 'com.google.common.collect.Interners$WeakInterner$InternReference { void finalizeReferent(); }'
 [proguard] Note: the configuration refers to the unknown class 'com.android.vending.licensing.ILicensingService'
 [proguard] Note: there were 1 references to unknown classes.
 [proguard]       You should check your configuration for typos.
 [proguard] Note: there were 5 accesses to class members by means of introspection.
 [proguard]       You should consider explicitly keeping the mentioned class members
 [proguard]       (using '-keep' or '-keepclassmembers').
 [proguard] Warning: there were 818 unresolved references to classes or interfaces.
 [proguard]          You may need to specify additional library jars (using '-libraryjars'),
 [proguard]          or perhaps the '-dontskipnonpubliclibraryclasses' option.
 [proguard] Warning: there were 5 instances of library classes depending on program classes.
 [proguard]          You must avoid such dependencies, since the program classes will
 [proguard]          be processed, while the library classes will remain unchanged.

BUILD FAILED
C:\dev\google\android\android-sdk_r09\tools\ant\main_rules.xml:430: Please 
correct the above warnings first.

Total time: 4 seconds

Original issue reported on code.google.com by licht...@gmail.com on 12 Aug 2011 at 11:38

Attachments:

GoogleCodeExporter commented 9 years ago
This issue is also present in 1.5.1 BETA. Building the release of the 
calendar-android-sample causes proguard to break.

[2011-10-31 14:14:58 - calendar-android-sample] Warning: there were 788 
unresolved references to classes or interfaces.
[2011-10-31 14:14:58 - calendar-android-sample]          You may need to 
specify additional library jars (using '-libraryjars'),
[2011-10-31 14:14:58 - calendar-android-sample]          or perhaps the 
'-dontskipnonpubliclibraryclasses' option.
[2011-10-31 14:14:58 - calendar-android-sample] Warning: there were 9 
unresolved references to program class members.
[2011-10-31 14:14:58 - calendar-android-sample]          Your input classes 
appear to be inconsistent.
[2011-10-31 14:14:58 - calendar-android-sample]          You may need to 
recompile them and try again.
[2011-10-31 14:14:58 - calendar-android-sample]          Alternatively, you may 
have to specify the options 
[2011-10-31 14:14:58 - calendar-android-sample]          
'-dontskipnonpubliclibraryclasses' and/or
[2011-10-31 14:14:58 - calendar-android-sample]          
'-dontskipnonpubliclibraryclassmembers'.
[2011-10-31 14:14:58 - calendar-android-sample] java.io.IOException: Please 
correct the above warnings first.
[2011-10-31 14:14:58 - calendar-android-sample]     at 
proguard.Initializer.execute(Initializer.java:308)
[2011-10-31 14:14:58 - calendar-android-sample]     at 
proguard.ProGuard.initialize(ProGuard.java:210)
[2011-10-31 14:14:58 - calendar-android-sample]     at 
proguard.ProGuard.execute(ProGuard.java:85)
[2011-10-31 14:14:58 - calendar-android-sample]     at 
proguard.ProGuard.main(ProGuard.java:499)

Original comment by slin...@gmail.com on 31 Oct 2011 at 7:37

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 3 Nov 2011 at 8:43

GoogleCodeExporter commented 9 years ago
I fixed calendar-android-sample to work properly with ProGuard.  Please verify.

Original comment by yan...@google.com on 11 Nov 2011 at 9:56

GoogleCodeExporter commented 9 years ago
Works with ProGuard on release using the 1.6.0 based example in the repo, thank 
you for the quick turn around.

Original comment by slinke...@gmail.com on 14 Nov 2011 at 2:12