onelikeone

解决Unknown error: to the dx.jar the SDK folder!最近渐渐迁移到Android Studio来了,更新过Android SDK Manager里的东西后,打开Eclipse Run工程报错。查找各种解决办法,发现:

Android SDK Build-tools的版本已经高于Android SDK Platform-tools版本了,见图

\

由于Android Studio有时必须用高版本的Build-tools,所以简单的删除高版本的Build-tools是不行的(见Unknown error: to the dx.jar the SDK folder!解决方法)。

最终,在Stack Overflow上找到相关答案(Android ADT error, was not loaded from the SDK folder),修改见图:

\

添加sdk.buildtools=你电脑上已装的build tools版本

\

即可。

 

 

亲测:

target=android-24
sdk.buildtools=25.0.3

有效!!

 

或者直接删除掉最新 26.0.0 、27.0.0 的文件夹也可以规避该问题

 

分类:

技术点:

相关文章:

  • 2021-07-21
  • 2021-09-16
  • 2021-12-25
  • 2022-01-10
  • 2021-08-02
  • 2022-01-10
猜你喜欢
  • 2021-09-08
  • 2021-09-12
  • 2021-08-11
  • 2021-09-26
  • 2021-08-08
  • 2021-06-12
相关资源
相似解决方案