简体   繁体   English

应用在Droid X上崩溃

[英]App crashing on Droid X

I just built and released an app on TestFlight. 我刚刚在TestFlight上构建并发布了一个应用。 However, when I tried to download -> launch the app on my phone it crashes right away. 但是,当我尝试下载->在手机上启动应用程序时,它立即崩溃。

My DroidX details are: 我的DroidX详细信息是:

System Version: 45.621.10.MB810.Verizon.en.US
Android Version: 2.3.4
Kernel Version: 2.6.32.9-g3e80c7a
Build Number: 4.5.1_57_DX9-10

I tested my app on simulator that had the details below: 我在模拟器上测试了我的应用,该应用具有以下详细信息:

Device: Nexus 4
Target: Android 4.3 - API Level 18

How can I troubleshoot further to see why my app is crashing? 如何进一步解决我的应用崩溃的原因? On ADB I don't see options for DroidX in Device and neither do I see option for 2.3.4 under Target. 在ADB上,我在“设备”中看不到DroidX的选项,在“目标”下也看不到2.3.4的选项。

I'm new and trying to figure out where to go from here to find out why my app is crashing on this phone? 我是新手,想弄清楚从这里去哪里,以了解为什么我的应用程序在这部手机上崩溃了?

It sounds like you've built the app using an API that isn't available on the Droid X. As you noted above, the X is at Android 2.3.4, and your simulator is at 4.3. 听起来您好像是使用Droid X上不提供的API来构建应用程序的。如上所述,X的版本为Android 2.3.4,而模拟器的版本为4.3。

Check here for more information on setting the API in your app's manifest. 在此处查看有关在应用清单中设置API的更多信息。 Android 2.3 is API level 9. Android 2.3是API级别9。

Note, though, that if you downgrade the API your app is using, you won't be able to use features available in newer versions of Android. 不过请注意,如果您降级您的应用程序正在使用的API,则将无法使用较新版本的Android中提供的功能。 One of the most noticeable additions to Android since Gingerbread, for example, is the action bar. 例如,自Gingerbread以来,Android最引人注目的新增功能之一就是操作栏。

If you do want to downgrade, you'll need to download and install the SDK for that API level to use it for development. 如果您确实想降级,则需要下载并安装该API级别的SDK才能将其用于开发。 The easiest way to do that is via the SDK Manager . 最简单的方法是通过SDK Manager

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM