我的应用程序正常运行,但日志显示“找不到ID为0xffffffff的程序包ID ff”。

El_*_*oco 15 android

我有一个可以在模拟器和自己的设备上正常运行的应用程序。但是,当我在视图之间导航时,会收到消息

No package ID ff found for ID 0xffffffff.
Run Code Online (Sandbox Code Playgroud)

每时每刻。我不知道这意味着什么或它来自哪里。

在日志中搜索,我还会发现以下消息:

I/low.wordscanne: The ClassLoaderContext is a special shared library.
2019-04-10 16:25:10.984 26226-26226/? I/chatty:uid=10099(com.myapp.erikbylow.wordscanner) identical 2 lines
2019-04-10 16:25:10.985 26226-26226/? I/low.wordscanne: The ClassLoaderContext is a special shared library.
2019-04-10 16:25:10.992 26226-26226/? W/low.wordscanne: Unsupported class loader
Run Code Online (Sandbox Code Playgroud)

而且MainActivity - onCreate我总是得到这个警告

Accessing hidden method Landroid/graphics/FontFamily;-><init>()V (light greylist, reflection)
2019-04-10 16:26:24.328 26226-26226/com.myapp.myname.wordscanner W/low.wordscanne: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromAssetManager(Landroid/content/res/AssetManager;Ljava/lang/String;IZIII[Landroid/graphics/fonts/FontVariationAxis;)Z (light greylist, reflection)
2019-04-10 16:26:24.328 26226-26226/com.myapp.myname.wordscanner W/low.wordscanne: Accessing hidden method Landroid/graphics/FontFamily;->addFontFromBuffer(Ljava/nio/ByteBuffer;I[Landroid/graphics/fonts/FontVariationAxis;II)Z (light greylist, reflection)
2019-04-10 16:26:24.328 26226-26226/com.myapp.myname.wordscanner W/low.wordscanne: Accessing hidden method Landroid/graphics/FontFamily;->freeze()Z (light greylist, reflection)
2019-04-10 16:26:24.328 26226-26226/com.myapp.myname.wordscanner W/low.wordscanne: Accessing hidden method Landroid/graphics/FontFamily;->abortCreation()V (light greylist, reflection)
2019-04-10 16:26:24.328 26226-26226/com.myapp.myname.wordscanner W/low.wordscanne: Accessing hidden method Landroid/graphics/Typeface;->createFromFamiliesWithDefault([Landroid/graphics/FontFamily;Ljava/lang/String;II)Landroid/graphics/Typeface; (light greylist, reflection)
Run Code Online (Sandbox Code Playgroud)

该应用程序至少可以在我的设备上运行,有人遇到过类似的事情吗?

我确实使用了aar-module从另一个项目中导入的内容。可以吗?

小智 18

这也发生在我身上,我已经苦了几个小时才知道为什么会发生。好像从:

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha3'
Run Code Online (Sandbox Code Playgroud)

至:

implementation 'androidx.constraintlayout:constraintlayout:2.0.0-alpha4'
Run Code Online (Sandbox Code Playgroud)

解决了案件。告诉我您是否也遇到了问题(可能是更新中的错误)

  • 同样在2.0.0-beta1 (8认同)
  • 似乎仍然存在于2.0.0-beta2 (6认同)
  • @Luis我建议不要使用2.0.0-beta2。它存在一些问题,例如:https://issuetracker.google.com/issues/135828276 (5认同)
  • 确认仍然在2.0.0-beta2上并且仍然存在一些错误 (4认同)
  • 它又返回了“ 2.0.0-alpha5”! (2认同)
  • 可以确认它是2.0.2 (2认同)