英文:
I developed and launched an app in AndroidStudio, but it closes immediately
问题
我正在按照 Android Studio 教程进行学习。
https://developer.android.com/codelabs/kotlin-android-training-get-started#5
我已经根据此页面创建了一个空项目。
按照教程中的说明,我下载了 Pixel4 R 模拟器。
然而,当我尝试运行应用程序时,它只显示如下内容,不在模拟器上运行。
7:33:51 PM: 执行任务...
7:33:51 PM: 任务执行完成。
我怀疑出现了错误,但没有显示错误信息。
我只是参照这个页面重新编写了 build.gradle 文件。
英文:
I am working my way through the AndroidStudio tutorial.
https://developer.android.com/codelabs/kotlin-android-training-get-started#5
I have created an EMPTY project by following this page.
I downloaded the Pixel4 R emulator as described in the tutorial.
However, when I try to run the app, it only shows as below and does not run on the emulator.
7:33:51 PM: Executing task...
7:33:51 PM: Task execution finished.
I suspected an error, but no error is indicated.
I have only rewritten build.gradle using this page as a reference.
答案1
得分: 0
工具栏看起来是这样的。
我点击了大象图标,将其更改为应用程序,现在我可以运行模拟器。
英文:
The toolbar looked like this.
So I clicked on the elephant icon and changed it to app, and now I can run the emulator.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论