5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

第1回Android Studio超入門#2 -Eclipseプロジェクトのインポート-

Last updated at Posted at 2014-09-26

はじめに

ここではEclipseで開発したプロジェクトをAndroid Studioにインポートします。どうなるか確認してみます。

Eclipseのプロジェクトを用意する

今回は残念ながら僕がEclipseのプロジェクトを1つも持っていなかった(というか資料作る前に移行してしまった)ので、EclipseでblankActivityのプロジェクトを作りました。それをインポートします。

Android Studioからインポートする

起動時の画面もしくはFileメニューからImport Projectを選択します。

スクリーンショット 2014-09-27 0.31.00.png

Eclipseのプロジェクトを選択します。

スクリーンショット 2014-09-27 0.33.02.png

Nextを押します。

スクリーンショット 2014-09-27 0.33.10.png

これは、Eclipseのプロジェクトをインポートする際に、Gradle依存のディレクトリ構造に置換するか聞いています。そのままFinishを押して完了します。

スクリーンショット 2014-09-27 1.12.46.png

最初に表示されているimport-summary.txtから置換されたディレクトリがわかったり、バグのレポートが吐きだされます。

Moved Files:
------------
Android Gradle projects use a different directory structure than ADT
Eclipse projects. Here's how the projects were restructured:

* AndroidManifest.xml => app/src/main/AndroidManifest.xml
* assets/ => app/src/main/assets/
* res/ => app/src/main/res/
* src/ => app/src/main/java/

#3へいく

5
6
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
6

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?