天天看点

eclipse上开发android初期的一些常见问题

Java Java Development Kit

Android Software Development Kit

ADT Plugin

问题一

报错如:

Failed to load (%ANDROID_SDK__HOME%)\build-tools\26.0.0-preview\lib\dx.jar

Unable to build: the file dx.jar was not loaded from the SDK folder

CAUSE:

国内现在可以访问的ADT版本是23.0.7,Google已经不再更新ADT了,这就会导致现有的ADT版本比SDK版本低。

SOLUTION:

1.删除SDK Manager里面高版本的build-tools。比如27.0.3.

2.下载SDK Manager里面较低版本的build-tools。比如23.0.3.

问题二

eclipse上开发android初期的一些常见问题

CAUSE:

sun/misc/BASE64Encoder has been dropped in Java 9. It is available till Java 8.

SOLUTION:

因此下次新的JDK1.8,安装

So i have change edit the eclipse.ini file by adding this line before the -vmargs

line :

-vm

D:\your address\bin\javaw.exe