简体   繁体   English

为旧版本的 Android Studio 导出项目

[英]Exporting a project for an older version of Android Studio

I am running Android Studio version 3.5.1.我正在运行 Android Studio 版本 3.5.1。 My students have version 3.4.2, and it's not practical to update their IDE because of security restrictions on the school computers.我的学生有版本 3.4.2,由于学校计算机的安全限制,更新他们的 IDE 是不切实际的。

When I export a project as a.zip file, they aren't able to open the project in their IDEs.当我将项目导出为 .zip 文件时,他们无法在其 IDE 中打开该项目。

Is there a way for (a) an older version of Android Studio to import a newer project? (a) 旧版本的 Android Studio 有没有办法导入新项目? or (b) a newer version of Android Studio to export a project for an older IDE?或 (b) 较新版本的 Android Studio 导出旧 IDE 的项目?

The Android Gradle Plugin is not forward compatible. Android Gradle 插件不向前兼容。 You can downgrade the Android Gradle Plugin to 3.4.2 if you're not using a specific feature in 3.5.1.如果您不使用 3.5.1 中的特定功能,您可以将 Android Gradle 插件降级到 3.4.2。

dependencies {
    classpath 'com.android.tools.build:gradle:3.4.2'
}

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

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