简体   繁体   English

为什么我的模拟器无法启动? *我的第一个android应用*

[英]Why won't my emulator launch? *my first android app*

I am writing my first android app. 我正在写我的第一个Android应用程序。 Literally, I haven't written a line of code yet. 从字面上看,我还没有编写任何代码。 I am following a simple tutorial for setting up my dev environment (made by google) and every time that I try to launch my app (one that is auto-generated and does nothing) it fails. 我正在遵循一个简单的教程来设置我的开发环境(由Google制造),并且每次尝试启动我的应用程序(自动生成且不执行任何操作)时,它都会失败。

When I try to 'run' the application directly from android studio without an emulator [API 17] open, I get no warning but nothing happens. 当我尝试在没有打开仿真器[API 17]的情况下直接从android studio“运行”应用程序时,我没有收到警告,但没有任何反应。

When I try to 'run' the application directly from android studio with an emulator [API 17] open, I get an error. 当我尝试“跑” 模拟器[API 17]开于Android工作室直接申请,我得到一个错误。 The error states "Failure [INSTALL_FAILED_OLDER_SDK]" 错误状态为“ [INSTALL_FAILED_OLDER_SDK]失败”

To research this error, I tried to add lines to the build.gradle file that specifies the sdk version like so: defaultConfig { minSdkVersion 11 targetSdkVersion 19 } 为了研究此错误,我尝试向build.gradle文件中添加指定sdk版本的行,如下所示:defaultConfig {minSdkVersion 11 targetSdkVersion 19}

this results in the gradle file not being able to be built. 这导致无法构建gradle文件。

I verified that my project settings have a lower minsdkversion set then my current emulators version. 我确认我的项目设置的minsdkversion设置低于当前的模拟器版本。

I am not sure how to get this to actually run at this point. 我不确定如何在这一点上使其真正运行。 Realistically, environment setup should not be this difficult -- unless I am missing something. 实际上,环境设置应该不会那么困难-除非我缺少任何东西。

Any advice? 有什么建议吗?

Try opening your SDK manager and downloading all the APIs within your min-max android versions. 尝试打开您的SDK管理器并下载您的最小最大Android版本中的所有API。 You can try running your App for a single Api version to get started. 您可以尝试为单个Api版本运行您的应用程序以开始使用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Android:为什么我的模拟器无法启动? - Android: Why won't my emulator launch? 我的Android模拟器无法启动,没有错误,有什么想法吗? - My Android emulator won't launch and there are no errors, any ideas? 我的应用程序不会显示在android模拟器和android设备上 - My app won't show up on android emulator and android device 在Android Studio中,当我尝试启动我的应用时,它在Android模拟器中显示“我的第一个应用已停止” - In Android Studio, when I try to launch my app, it says “My First App has stopped” in the Android emulator 在Android模拟器中单击后,我的应用程序将无法运行 - My App won't run after clicking on it in Android Emulator 我的应用程序无法在Eclipse的Android仿真器上加载 - My App Won't load on the Android Emulator on Eclipse Eclipse不会启动Android模拟器,也不会安装应用程序 - Eclipse does not launch the Android emulator and won't install app Phonegap“你好世界”应用程序将无法在Android模拟器中启动? - Phonegap “hello world” app won't launch in android emulator? 为什么我的本机库无法加载到我的Android应用程序中? - Why won't my native library load in my Android App? 为什么 Android Studio 不会在我的手机上安装我的应用程序 - Why Android Studio won't install my app on my phone
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM