我是 android 开发的新手,刚刚按照本教程在 android studio 3.2 (canary) 中创建了我的第一个“hello world”项目。 https://developer.android.com/jetpack/docs/getting-started
然后我只是做了 Build-> make project project tried to build 并给了我以下错误。
Could not get unknown property 'archLifecycleVersion' for root project 'JetpackHelloWorld' of type org.gradle.api.Project.
但我能够在我发布的问题的答案的帮助下解决该错误。 android jetpack project gives archlifecycleversion build error
解决该错误后,我尝试再次构建,但现在出现以下错误。
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 Sync),看看是否有帮助
关于android jetpack 入门项目无法运行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50472779/