android Jetpack 入门项目不能运行

android jetpack getting started project cant run

我是 android 开发的新手,刚刚按照本教程在 android studio 3.2 ( canary ) 中创建了我的第一个 "hello world" 项目。 https://developer.android.com/jetpack/docs/getting-started

然后我只是做了 Build-> make project project tryed to build 并给了我以下错误。

Could not get unknown property 'archLifecycleVersion' for root project 'JetpackHelloWorld' of type org.gradle.api.Project.

但我能够在我发布的问题的答案的帮助下解决该错误。

在解决该错误后,我尝试再次构建,但现在出现以下错误。

the '-d' option with a directory destination is ignored because '-Xbuild-file' is specified

运行 已禁用

如您在屏幕截图中所见,应用程序的 运行 选项被禁用,如果我单击下拉菜单,它会要求我编辑配置,我应该在空项目?

but then I clicked on Edit Configurations and added a android application configuration, but at the point of selecting modules there was no modules in drop down list to select from, and now I cant run my app because i get the error "confuguration is not valid" I also see a red cross icon on my app name near the run button, I think that is because I have not selected a module? but how can I select one when there isnt any?

试着点击右边那个火箭东西右边两个按钮(Gradle 同步),看看是否有帮助