[英]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.