1.打開(kāi)as,選擇File-new-Import Project

2.找到你的項(xiàng)目路徑,選擇你的eclipse項(xiàng)目,然后next

3.這邊我選擇了不替換,大家按需選擇,然后finish,等待項(xiàng)目的導(dǎo)入

4.然后我遇到了第一個(gè)坑,android studio可能會(huì)無(wú)法識(shí)別不規(guī)范的.9圖(沒(méi)有這個(gè)錯(cuò)誤的童鞋可以跳過(guò)這步)
Can't have more than one mark Found at pixel #11 along bottom edge
1.首先確認(rèn)圖片是不是.9格式的,如果不是名字中不要帶有.9
2.如果是.9的圖片,則需要在圖片四周都設(shè)置好像素點(diǎn)
5.第二個(gè)坑
Error:duplicate files during packaging of APK...
You can ignore those files in your build.gradle:
android {
packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
解決辦法是在主工程的build.gradle里

加入如下代碼

packagingOptions {
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
修改后別忘了 點(diǎn)擊右上角的sync now, 然后不出意外的話就可以啟動(dòng)你的應(yīng)用啦~快去體驗(yàn)1.5的新功能吧!

Android studio 新的分析功能