【问题标题】:Android Studio when import new module the project don't show at project structureAndroid Studio 导入新模块时项目不显示在项目结构中
【发布时间】:2020-02-29 15:02:42
【问题描述】:

Android Studio 在导入新模块时项目不会显示在项目结构中

我有两个 android 项目,我需要将两个项目添加到一起以打开从一个应用程序到另一个应用程序的活动 将项目添加为模块时,我无法在两个项目之间链接

enter image description here

当使用手动添加时

实施项目(':test')

我显示这个错误 enter image description here

【问题讨论】:

  • 你有编译错误。当您有编译错误时,项目并不总是完全构建,因此您将无法看到所有引用。也在这里发布你的settings.gradle

标签: java android android-studio mobile


【解决方案1】:

您是否愿意检查一下您的 settings.gradle 是否有:

include ':app'
include ':test'

另外,检查您的测试 build.gradle 是否正在使用 apply plugin: 'com.android.library' 而不是 apply plugin: 'com.android.application'

现在我不确定您是否正在开发两个不同的应用程序并想从应用程序 A 打开应用程序 B?如果是这种情况,您可以尝试不同的方法,我建议您阅读 App Link,这样您就可以实现这一目标。

https://developer.android.com/training/app-links

【讨论】:

  • 我试试这个但同样的问题
猜你喜欢
  • 1970-01-01
  • 2013-11-22
  • 1970-01-01
  • 1970-01-01
  • 2019-05-01
  • 2019-10-31
  • 1970-01-01
  • 2022-07-16
  • 1970-01-01
相关资源
最近更新 更多