Problem Overview:
Create an androidProgramThe following error occurs:
The/Android-SDK-Windows/tools/lib/proguard. cfg file is not found.
Cause:
The SDK is incomplete.
Solution:
Method 1
You can create a proguard. cfg file in the/Android-SDK-Windows/tools/lib/directory.
Add the following content:
Proguard. cfg </P> <p>-optimizationpasses 5-dontusemixedcaseclassnames-dontskipnonpubliclibraryclasses-dontpreverify-verbose-optimizations! Code/simplification/arithmetic ,! Field /*,! Class/merging/*-keep public class * extends android. app. activity-keep public class * extends android. app. application-keep public class * extends android. app. service-keep public class * extends android. content. broadcastreceiver-keep public class * extends android. content. contentprovider-keep public class COM. android. vending. licensing. ilicensingservice-keepclasseswithmembernames class * {native <Methods >;}-keepclasseswithmembernames class * {Public <init> (Android. content. context, android. util. attributeset);}-keepclasseswithmembernames class * {Public <init> (Android. content. context, android. util. attributeset, INT);}-keepclassmembers Enum * {public static ** [] values (); public static ** valueof (Java. lang. string);}-keep class * implements android. OS. parcelable {public static final android. OS. parcelable $ creator *;}
Method 2
Update all sdks through Android SDK and AVD manager.