プロフィール

Author:はるかわ しおん
なにか、新しいものを。
そして、楽しいものを。

FC2カウンター


上記の広告は1ヶ月以上更新のないブログに表示されています。
新しい記事を書く事で広告が消せます。
  • GoogleMapAPIV2 で ProGuard エラー

以下のエラーに遭遇しました。



Proguard returned with error code 1. See console
警告: com.google.android.gms.common.images.ImageManager$c: can't find superclass or interface android.content.ComponentCallbacks2
警告: com.google.android.gms.internal.bn$b: can't find superclass or interface android.view.View$OnAttachStateChangeListener
警告: com.google.android.gms.maps.MapFragment: can't find superclass or interface android.app.Fragment
警告: com.google.android.gms.common.GooglePlayServicesUtil: can't find referenced field 'int smallestScreenWidthDp' in class android.content.res.Configuration
警告: com.google.android.gms.common.images.ImageManager: can't find referenced method 'void registerComponentCallbacks(android.content.ComponentCallbacks)' in class android.content.Context
警告: com.google.android.gms.common.images.ImageManager$c: can't find referenced class android.content.ComponentCallbacks2
警告: com.google.android.gms.internal.bn$b: can't find referenced class android.view.View$OnAttachStateChangeListener
警告: com.google.android.gms.internal.bn$b: can't find referenced method 'void addOnAttachStateChangeListener(android.view.View$OnAttachStateChangeListener)' in class android.view.View
警告: com.google.android.gms.internal.bn$b: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View
警告: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnAttachStateChangeListener(android.view.View$OnAttachStateChangeListener)' in class android.view.View
警告: com.google.android.gms.internal.bn$b: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$a: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment
警告: com.google.android.gms.maps.MapFragment$b: can't find referenced class android.app.Fragment
You should check if you need to specify additional program jars.
警告: there were 23 unresolved references to classes or interfaces.
You may need to specify additional library jars (using '-libraryjars').
警告: there were 6 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)




設定ファイル proguard-project.txt の末尾に以下を追加したところ、問題なくなりました。



# Google Map API v2 エラー対策
-dontwarn com.google.android.gms.*
-ignorewarnings





コメント

コメントの投稿

   管理者にだけ表示を許可する
上記広告は1ヶ月以上更新のないブログに表示されています。新しい記事を書くことで広告を消せます。