相关疑难解决方法(0)

来自nativeGetEnabledTags的意外值:0

我安装了最新版本的SDK(r21)和ADT 21.0.0.我尝试了简单的代码,它运行良好,但现在我在LogCat中收到一个警告,该警告没有出现在以前的版本中:

来自nativeGetEnabledTags的意外值:0

我用Google搜索了,我发现了问题39723:Emulator使用"来自nativeGetEnabledTags:0的意外值"消息阻止LogCat.

这是什么意思?

android adt android-logcat

299
推荐指数
5
解决办法
8万
查看次数

Android的意图创作

这只是一个初学者的问题,但即使借助他人的问题(这确实增加了我的知识),我仍然不确定我做错了什么.我直接运行了SupWorld类(通过清单)并且它有效,所以我认为问题是我没有正确地调用类.我已经尝试了我找到的所有建议,但每次它都告诉我"不幸的是,测试代码已停止." 在模拟器中.(测试代码是我项目的名称.)我在代码中留下了一些失败的尝试作为注释来帮助确定问题.我当然尝试使用"this"来获取我的内容而没有成功.任何有用的知识将不胜感激!谢谢.

package com.evorlor.testcode;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;

public class MainActivity extends Activity {

//  Context context;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        // setContentView(R.layout.activity_main);

//      context = this;

        Intent intent = new Intent(getApplicationContext(), SupWorld.class);

        startActivity(intent);
    }

    // @Override
    // public boolean onCreateOptionsMenu(Menu menu) {
    // // Inflate the menu; this adds items to the action bar if it is present.
    // getMenuInflater().inflate(R.menu.activity_main, menu);
    // return true;
    // }

}
Run Code Online (Sandbox Code Playgroud)

我的logCat(我不熟悉logCat是什么以及如何使用它.我将它作为文本文件导出,这就是所有出现的.如果这不是你想要的,请告诉我:

12-10 21:11:38.013: W/Trace(1094): Unexpected value from …
Run Code Online (Sandbox Code Playgroud)

android android-intent

-1
推荐指数
1
解决办法
336
查看次数

标签 统计

android ×2

adt ×1

android-intent ×1

android-logcat ×1