16

Yes. Everybody are testing Android Studio. I'm using Eclipse in my projects and I want to migrate to Android Studio. I'm having problems with my projects.

I read this page: http://developer.android.com/sdk/installing/migrate.html

Not a great how to in my opinion.

I'm using in my project libraries that are not in .jar formats but they're eclipse projects (with checked "is library" in properties).

Could you tell me how to move my projects to Android Studio? I'm having problems and tons of errors. I'm also using Google Play Services and Android Studio showed me old versions of the same API's.

How to add for example ActionBarSherlock or Android-ViewPagerIndicator?

Shoud I import just like in eclipse all of these projects. But in Android Studio I can't mark project as library or not?

4

3 回答 3

5
  1. 打开项目结构(cmd-;在 osx 上或只是文件 > 项目结构)
  2. 转到方面
  3. 选择模块(你导入的项目)
  4. 顶部会有一个“库模块”复选框
于 2013-05-16T21:47:15.417 回答
2
于 2013-10-10T07:08:24.897 回答
0

要使用 Google Play 服务: 在 build.gradle 文件中:

dependencies {
    compile 'com.google.android.gms:play-services:4.2.42'
}

在 AndroidManifest.xml 文件中:

<application >
    <meta-data 
        android:name="com.google.android.gms.version" 
        android:value="@integer/google_play_services_version" />
</application>

我实际上有 android:value="4242000" 但 AndroidStudio 将其自动更正为上面的编译器,所以我留下了它,因为它不那么脆弱。

于 2014-04-21T17:18:02.933 回答