gpt4 book ai didi

安卓工作室。导入后未指定模块

转载 作者:可可西里 更新时间:2023-11-01 18:48:01 24 4
gpt4 key购买 nike

我用的是android studio。我从官方网站导入示例项目

http://developer.android.com/training/contacts-provider/retrieve-names.html

当我尝试运行它时,我看到 Edit configuration 窗口,其中显示 Error: Module not specified

我看了这个回答

https://stackoverflow.com/a/16625227/1864033

并标记(在Project structure -> modules中)我的res/文件夹为resources文件夹和sources文件夹为sources.

问题仍然存在。

还有 Project structure -> modules.gradlebuild 是被排除的文件夹。

android studio 案例中“模块未指定”是什么意思?

最佳答案

可能您必须更新您的 Android Studio 版本并重试。我导入了该示例,没有任何问题,它在模拟器上运行良好。

这是我从 Android Studio 导入的报告:

ECLIPSE ANDROID PROJECT IMPORT SUMMARY

Replaced Jars with Dependencies: -------------------------------- The importer recognized the following .jar files as third party libraries and replaced them with Gradle dependencies instead. This has the advantage that more explicit version information is known, and the libraries can be updated automatically. However, it is possible that the .jar file in your project was of an older version than the dependency we picked, which could render the project not compileable. You can disable the jar replacement in the import wizard and try again:

android-support-v4.jar => com.android.support:support-v4:19.1.0

Moved Files: ------------ Android Gradle projects use a different directory structure than ADT Eclipse projects. Here's how the projects were restructured:

  • AndroidManifest.xml => app\src\main\AndroidManifest.xml
  • res\ => app\src\main\res\
  • src\ => app\src\main\java\

Next Steps: ----------- You can now build the project. The Gradle project needs network connectivity to download dependencies.

Bugs: ----- If for some reason your project does not build, and you determine that it is due to a bug or limitation of the Eclipse to Gradle importer, please file a bug at http://b.android.com with category Component-Tools.

(This import summary is for your information only, and can be deleted after import once you are satisfied with the results.)

关于安卓工作室。导入后未指定模块,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23856529/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com