打开跟踪文件时出错:没有这样的文件或目录 (2)

error opening trace file: No such file or directory (2)(打开跟踪文件时出错:没有这样的文件或目录 (2))
本文介绍了打开跟踪文件时出错:没有这样的文件或目录 (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)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!

本站部分内容来源互联网,如果有图片或者内容侵犯您的权益请联系我们删除!

相关文档推荐

VertX 3.9.7 when i receive the form quot;throw exceptionquot; Size exceed allowed maximum capacityquot;(VertX 3.9.7收到表单时抛出异常SIZE超出允许的最大容量QUOT;)
Android This feature requires ASM7(Android此功能需要ASM7)
JDK11 Upgrade Fails - ClassNotFoundException jdk.internal.ref.Cleaner(JDK11升级失败-ClassNotFoundException jdk.inder.ref.Cleaner)
How to make Eclipse compile patched modules on JDK 9+ by passing the --patch-module javac option to my project compiler? (see pic)(如何通过向我的项目编译器传递--patch-MODULE javac选项,让Eclipse在JDK 9+上编译打了补丁的模块?(见图))
JavaFX Modular Application, java.lang.module.FindException: Module javafx.controls not found (Java 11, Intellij)(JavaFX模块化应用程序,java.lang.mode.FindException:未找到模块javafx.Controls(Java 11,IntelliJ))
Cannot resolve symbol Theme.MaterialComponents.Light.NoActionBar (Android Studio)(无法解析符号Theme.MaterialComponents.Light.NoActionBar(Android Studio))