Bootstrap

java adt中怎么把项目导入_如何将ADT项目导入Android studio及常見問題

ADT导出Android studio项目

右键-->ExportAndroid/Generate Gradle build files-->

8519302a16482784db63af87d00a6d4b.png

b7bcbec562a13d684a5b7ed038cefc57.png

28e49bd46d4e4aadecb0a692dbbb80f3.png

Android studio导入项目

File-->Open File Or Project选择相应的项目即可

654bced7f43596418f814de2bd9c9092.png

常见问题

Error:Configuration with name 'default' not found.

settings.gradle中include的库找不到

解决Gradle DSL method not found: ‘android()’

f542e2f228349b9419d5c2a4d1b4c3d0.png

删掉最外层的build.gradle中的

android {

compileSdkVersion19buildToolsVersion'21.1.1'

}

然后重新刷新就ok了

参考:http://www.hloong.com/?p=100

cbe9fcc9c22899ef6230743562450892.png

解决png图片libpng warning: iCCP: Not recognizing known sRGB profile that has been edited

7cd9d7cd88c3673157bcf667dd15a069.png

;