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

查看:55
本文介绍了打开跟踪文件时出错:没有这样的文件或目录 (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天全站免登陆