简体   繁体   English

更新/迁移仅对项目具有build.gradle的Gradle项目

[英]Update/Migrate Gradle project that only has build.gradle for project

I have a old app that was developed when Android Studio first came out. 我有一个旧应用程序,是在Android Studio首次发布时开发的。 I've now came to update it but it's using the original version of gradle. 我现在来更新它,但是它使用的是gradle的原始版本。 It still uses the manifest to for version numbers and codes and doesn't have a build.gradle for the app, only the module (project). 它仍然使用清单文件来显示版本号和代码,并且对于应用程序没有build.gradle,只有模块(项目)。

How do I go about updating everything so it should have a build.gradle for the app as well as the module. 我该如何更新所有内容,因此它应具有适用于应用程序和模块的build.gradle。

转到更新的Android Studio并在其中导入您的旧项目,Android Studio将自动为您的项目创建所有缺少的build.gradle文件

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

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