项目中检测到了Android框架。

3
当我在Android Studio .2.5中选择新项目所有默认选项创建新项目时,现在会给出以下反馈。
Frameworks detected: Android framework is detected in the project Configure

Configure可以点击,并显示一个包含清单文件的弹出窗口。即使如此,该项目仍未正确创建。这是一个截图:

enter image description here

现在出现以下错误:

    10:19:50 PM IllegalStateException: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:20:39 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:20:46 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:11 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:23 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:30 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:43 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:45 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:22:47 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:23:07 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:23:09 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:23:12 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null
10:23:13 PM IllegalStateException: update failed for ActionGroup: null (Theme to render layout with)[null]: @NotNull method com/android/tools/idea/rendering/ManifestInfo.getActivityThemes must not return null

"未正确创建" ... 解释问题,您面临哪个文件/文件夹/结构错误。 - S.D.
1
这是在Windows 7上使用Android Studio 0.2.5创建的一个新项目。我没有更改默认设置,但是项目无法正确创建,许多文件都丢失了,例如模块中没有build.gradle文件,而且项目无法构建和编译... - dhaval
1个回答

4

当我从SDK管理器中安装更新版本时,并没有选择“Android支持仓库”。现在,在安装它之后,项目可以正常创建。


我在文档中没有找到这个组件是正常项目创建所必需的任何地方。在发现这篇文章之前,我已经苦思冥想了好几个小时。谢谢。 - ZoltanF
很高兴能帮到你,对我来说也是试错了一段时间,直到我偶然发现了这个知识点... - dhaval
4
我认为这不是解决问题的实际方法。 - Tim Boland

网页内容由stack overflow 提供, 点击上面的
可以查看英文原文,
原文链接