error 第三方 文章 null
目标: 迁移成功, 并成功正常运行!
附加: 同步视频在文章后面!
1. 用 Gradle 导出, 在 Android Studio 中用 Gradle 导入 (不推荐)
2. 用 Android Studio 直接导入 Eclipse 工程 (推荐)
我以第二种方式.
- compile 'com.android.support:support-annotations:19.1.0'
- xmlns:tools="http://schemas.android.com/tools"
- <application
- android:name="com.fanwe.app.App"
- android:allowBackup="true"
- android:icon="@drawable/icon"
- android:label="@string/app_name"
- android:theme="@style/FanweTheme"
- tools:replace="icon, label,theme">//Android Studio会引导你使用tools标签来进行设置:tools:replace="icon, label,theme"
其实第二种方式还是很简单的, 没什么特别要注意的地方, 对了, 还有一个文件需要注意, 因为有些文件 AS 没有复制过来而是忽略了他们.
在
中有
- import-summary.txt
里面注明具体哪一类型的文件会被 Android Studio 忽略.
- Ignored Files:
Eclipse 工程迁移到 Android Studio
来源: http://www.bubuko.com/infodetail-2059330.html