简体   繁体   English

如何将Google Code项目导入Android Studio?

[英]How to import google code project to android studio?

I recently came across a cool project ( https://code.google.com/p/android-wheel/ ) I would like to import to android studio. 我最近遇到了一个很酷的项目( https://code.google.com/p/android-wheel/ ),我想导入到android studio。 Is it possible to import this without trying to copy-paste individual code? 是否可以在不尝试复制粘贴单个代码的情况下导入它?

Thanks 谢谢

您必须解压缩apk以使其更容易,或者如果您只想运行它,则apk位于downoads部分

Those projects contains .project and .classpath files. 这些项目包含.project.classpath文件。 Those are meta-data for eclipse IDE and unfortunately there is no build.gradle so it cannot be imported immediately in Android-Studio. 这些是用于Eclipse IDE的元数据,不幸的是没有build.gradle,因此无法立即将其导入Android Studio。

The best thing to do is to write a build.gradle yourself for this project and then opening it into Android-Studio. 最好的办法是为该项目编写一个build.gradle自己,然后将其打开到Android-Studio中。 It's a good exercise to learn gradle if you are not familiar with it yet. 如果您还不熟悉gradle,这是一个很好的练习。

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

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