Error during compilation of the android project, as well as during the creation of the apk file using ProGuard
Installed in the Google play services lib application. Everything started and displayed, but after creating an apk for publishing to Intellij IDEA, I received an error that the file is not optimized. Googled, found that you need to use ProGuard. Put a daw during the creation of the file, and spilled errors.
Below are copy-pastes from the log.
Error:ProGuard: [MyApplication] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager Error:ProGuard: [MyApplication] Warning: com.google.android.gms.cast.TextTrackStyle: can't find referenced class android.view.accessibility.CaptioningManager$CaptionStyle Error:ProGuard: [MyApplication] Warning: com.google.android.gms.common.SupportErrorDialogFragment: can't find referenced method 'void setShowsDialog(boolean)' in class com.google.android.gms.common.SupportErrorDialogFragment Error:ProGuard: [MyApplication] Warning: com.google.android.gms.common.api.d: can't find referenced method 'android.support.v4.app.FragmentActivity getActivity()' in class com.google.android.gms.common.api.d Error:ProGuard: [MyApplication] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'android.app.Fragment getParentFragment()' in class android.app.Fragment Error:ProGuard: [MyApplication] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'boolean getUserVisibleHint()' in class android.app.Fragment Error:ProGuard: [MyApplication] Warning: com.google.android.gms.dynamic.b: can't find referenced method 'void setUserVisibleHint(boolean)' in class android.app.Fragment Error:ProGuard: [MyApplication] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'android.view.Display getDisplay()' in class android.view.View Error:ProGuard: [MyApplication] Warning: com.google.android.gms.games.internal.PopupManager$PopupManagerHCMR1: can't find referenced method 'void removeOnGlobalLayoutListener(android.view.ViewTreeObserver$OnGlobalLayoutListener)' in class android.view.ViewTreeObserver Error:ProGuard: [MyApplication] Warning: com.google.android.gms.internal.ed: can't find referenced method 'boolean isActiveNetworkMetered()' in class android.net.ConnectivityManager Error:ProGuard: [MyApplication] Warning: com.google.android.gms.internal.es: can't find referenced method 'java.lang.String getDefaultUserAgent(android.content.Context)' in class android.webkit.WebSettings Error:ProGuard: [MyApplication] Warning: com.google.android.gms.internal.es: can't find referenced method 'void setMediaPlaybackRequiresUserGesture(boolean)' in class android.webkit.WebSettings Error:ProGuard: [MyApplication] You should check if you need to specify additional program jars. Error:ProGuard: [MyApplication] Warning: there were 9 unresolved references to classes or interfaces. Error:ProGuard: [MyApplication] You may need to specify additional library jars (using '-libraryjars'). Error:ProGuard: [MyApplication] Warning: there were 10 unresolved references to program class members. Error:ProGuard: [MyApplication] Your input classes appear to be inconsistent. Error:ProGuard: [MyApplication] You may need to recompile them and try again. Error:ProGuard: [MyApplication] Alternatively, you may have to specify the option Error:ProGuard: [MyApplication] '-dontskipnonpubliclibraryclassmembers'. Error:ProGuard: [MyApplication] java.io.IOException: Please correct the above warnings first. Error:ProGuard: [MyApplication] at proguard.Initializer.execute(Initializer.java:321) Error:ProGuard: [MyApplication] at proguard.ProGuard.initialize(ProGuard.java:211) Error:ProGuard: [MyApplication] at proguard.ProGuard.execute(ProGuard.java:86) Error:ProGuard: [MyApplication] at proguard.ProGuard.main(ProGuard.java:492)