1.打开as,选择File-new-Import Project

2.找到你的项目路径,选择你的eclipse项目,然后next

3.这边我选择了不替换,大家按需选择,然后finish,等待项目的导入

4.然后我遇到了第一个坑,android studio可能会无法识别不规范的.9图(没有这个错误的童鞋可以跳过这步)
Can't have more than one mark Found at pixel #11 along bottom edge
1.首先确认图片是不是.9格式的,如果不是名字中不要带有.9
2.如果是.9的图片,则需要在图片四周都设置好像素点
5.第二个坑
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'
}
修改后别忘了 点击右上角的sync now, 然后不出意外的话就可以启动你的应用啦~快去体验1.5的新功能吧!

网友评论