Problems with Android Environment setup

Source: Internet
Author: User

1. The error appears this ANDROIDSDK requires Android Developer Toolkit version 20.0.0or above

Android virtual machines are installed under Windows, and sometimes when you choose to update the SDK, point to android_sdk_windows_x86 in eclipse preference. A prompt such as this androidsdk requires Android Developer Toolkit version 20.0.0or above will appear, and the virtual machine cannot be turned on , which is due to the selection of updates after the Android_sdk_windows/tools/lib under plugin.prop file was changed to


# Begin Plugin.prop
plugin.version=20.0.0
# End Plugin.prop

Solution:
When eclipse looks at the file, it sees plugin.version=20.0.0 that the current SDK requires more than 20.00 plugins, but the current ADT Plugin has not yet been updated to version 20.0.0, but we only want to use the old plugin, the simplest way is to change the Plugin.version version information to the old version of the version number, such as the current ADT is 16.0.0. The current version of the SDK has been updated to 20.0.0, after the late update, I am prompted to update Android Developer Toolkit to 20.0.0.0 version above, while the previous lower version of the Androiddeveloper Toolkit But can not use, found only after finding the file is the problem, modify plugin.version=16.0.0 (my old Android Developer Toolkit) Save, and then restart Eclipse can be used in the former old AvD.

2. An error occurred: you are not prompted to find proguard.cfg when you create a new project

Solution : Create a new proguard.cfg content in the Tool/lib directory as follows

-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;
}
-keepclasseswithmembernames class * {
Public (Android.content.Context, Android.util.AttributeSet);
}
-keepclasseswithmembernames class * {
Public (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 *;
}

3. How to install ADT under MYECLIPSE10:

Extract the Adt-xx.zip to ADT, enter the ADT directory, delete the web directory, Site.xml, and index.html, then copy the ADT folder to the MyEclipse 10/dropins directory and restart MyEclipse 10.

The above three questions are I build an Android environment encountered problems, the solution is I copied from other Bo Digest and merged together, indeed helped a lot of busy, took a long time, unfortunately still do not know why so, I scrutiny to update!

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.