简体   繁体   English

有没有一种方法可以将Eclipse,1个库+ 2个应用程序项目转换为Android Studio,2个构建变体

[英]Is there a way to convert an Eclipse, 1 library + 2 application projects into an Android Studio, 2 build variants

This is the usual 1 library/2 app projects reason - free/paid version of the same app in eclipse. 这是通常的1 library / 2应用程序项目原因-Eclipse中同一应用程序的免费/付费版本。

Is there a way to easily convert this setup into an gradle/Android Studio project that uses build variants? 有没有一种方法可以轻松地将此设置转换为使用构建变体的gradle / Android Studio项目? Preferably that won't confuse git too much? 最好不要将git混淆太多? ADT's export obviously doesn't do that for you. ADT的出口显然不能为您做到这一点。

Or would it be just easier to build up the gradle project from scratch? 还是从头开始构建gradle项目会更容易吗? Are there any good samples out there for gradle/2 variants? gradle / 2变体有没有好的样品?

You should use Eclipse Export tool to generate gradle files for you. 您应该使用Eclipse导出工具为您生成gradle文件。 then you can easily export it in Android Studio 那么您可以轻松地将其导出到Android Studio中

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM