Android Studio中的android pre dex错误 [英] android pre dex errors in Android Studio

查看:215
本文介绍了Android Studio中的android pre dex错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

最近,我尝试打开一个在Android Studio中开发的项目,然后尝试对其进行重建,这样一来,我就收到了全部加载的Android Pre Dex错误,而我完全摆脱了这些错误。尝试了很多东西,例如更改Android API级别,清洁,更改jdk版本..均不起作用。



任何专家都可以启发我什么是




I recently try to open up a project developed sometime ago into Android Studio and try to rebuild it and I get whole load Android Pre Dex errors which I am totally stuck how I get rid of them. Tried a lot of stuff such as changing Android API level, cleaning, change jdk version.. all doesn't work.

Any experts out there can enlighten me what is the likely cause of these errors.?

android pre dex errors screenshot

解决方案

i already solved it it happen because you didnt setting the default java in android studio 2.3.3 or android studio 3.0 beta 6

  1. go to file > project structure > SDK location
  2. change the JDK Location to C:\Program Files\Java\jdk1.8.0_131

这篇关于Android Studio中的android pre dex错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆