【问题标题】:Using Tracer For opengl in android debugger在 android 调试器中使用 Tracer for opengl
【发布时间】:2012-10-22 23:58:55
【问题描述】:

我正在尝试让 opengl 跟踪器在监视器中为 android 工作。当我添加应用名称时,我无法打开应用。

启动应用程序时出现错误错误:Starting Intent { .... }

还有一个错误说无法解决意图。

我也无权访问源代码,所以有什么办法可以得到这个运行

【问题讨论】:

    标签: android opengl-es ddms


    【解决方案1】:

    Android N am 命令已移除--opengl-trace,因此您无法使用Monitor 的OpenGL trace 或adb shell am --opengl-trace 来调试您的APP。 仅使用 google GPU Debugger gapid。

    【讨论】:

      【解决方案2】:

      也可能是这个问题Not Able To Debug App In Android Studio。检查您的应用程序是否构建为可调试的:

      <application android:debuggable="true">
      </application>
      

      希望对大家有所帮助。

      【讨论】:

        【解决方案3】:

        接收 Intent 名称有些棘手,这是 tracer 所必需的。 您需要在 Android Platform Tools 上输入:

        adb shell dumpsys package <name of application> -f
        

        您将看到有关您的应用程序的详细信息, 包括意图名称。您需要输入的这个 Intent 名称 进入 GL Tracer 插件(或监视器)中的对话框窗口

        【讨论】:

          【解决方案4】:

          我得到了答案。问题是我没有使用正确的活动。

          现在要获取活动的名称,我做了一个

          adb shell dumpsys activity | grep <name of the application>
          

          同时专注于所需的活动。

          通过这样做,我得到了活动的名称, 我在 GLTracer 中使用的。一旦我能够这样做,我就可以收集跟踪日志

          【讨论】:

          • 我得到了这个:Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10200000 cmp=com.example.overdraw/.MainActivity bnds=[176,1037][304,1181] }。所以我在 GLTracer 中使用的 Activity 的名称是 MainActivity.MainActivity?
          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2017-04-30
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2014-02-10
          相关资源
          最近更新 更多