错误打开跟踪文件:没有这样的文件或目录 (2) [英] error opening trace file: No such file or directory (2)

查看:29
本文介绍了错误打开跟踪文件:没有这样的文件或目录 (2)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我收到上述错误:

错误打开跟踪文件:没有那个文件或目录 (2)

error opening trace file: No such file or directory (2)

当我在模拟器上运行我的 android 应用程序时.有人能告诉我这可能是什么原因吗?

when I run my android application on the emulator. Can someone tell me what could be the possible reason for this?

我正在使用 android-sdk-20 并将以下几行添加到 AndroidManifest.xml

I am using android-sdk-20 and below lines are added to AndroidManifest.xml

<uses-sdk android:minSdkVersion="14" android:targetSdkVersion="15" />

我还添加了以下行:

<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />

因为我认为写入sd卡可能存在一些问题.

since I thought that there may be some issue with writing to the sd card.

推荐答案

发生这种情况是因为您的计算机中尚未安装 minSdkVersion 或 targetSdkVersion.我现在已经测试过了.

It happens because you have not installed the minSdkVersion or targetSdkVersion in you’re computer. I've tested it right now.

例如,如果您的 Manifest.xml 中有这些行:

For example, if you have those lines in your Manifest.xml:

<uses-sdk
android:minSdkVersion="8"
android:targetSdkVersion="17" />

而且你的电脑只安装了API17,它会报错.如果您想对其进行测试,请尝试安装其他 API 版本(在本例中为 API 8).

And you have installed only the API17 in your computer, it will report you an error. If you want to test it, try installing the other API version (in this case, API 8).

即便如此,这也不是一个重要的错误.这并不意味着您的应用是错误的.

Even so, it's not an important error. It doesn't mean that your app is wrong.

抱歉我的表达.英语不是我的语言.再见!

Sorry about my expression. English is not my language. Bye!

这篇关于错误打开跟踪文件:没有这样的文件或目录 (2)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆