【问题标题】:"Detected prob_lem with app native libraries" message on certain phones某些手机​​上的“检测到应用程序本机库的问题”消息
【发布时间】:2017-04-08 16:36:44
【问题描述】:

每次运行应用程序时,都会收到此错误消息。应用程序中没有任何内容,它只是您在工作室中获得的基本导航抽屉模板。该消息仅出现在某些设备上(我在带有 Lineage OS(7.1.1) 的 Zenfone 2 上运行它)。我的 SDK 版本是 25,我正在运行 android studio 2.3.1。

消息说: 检测到应用原生库的问题(详情请查阅日志):

libavcodec.so:文本重定位

libswresample.so:文本重定位

Log:

04-08 21:53:06.321 6798-6798/? I/art: Late-enabling -Xcheck:jni
04-08 21:53:06.482 6798-6798/com.platformpetal.platformpetal W/System: ClassLoader referenced unknown path: /data/app/com.platformpetal.platformpetal-1/lib/x86
04-08 21:53:06.494 6798-6798/com.platformpetal.platformpetal I/InstantRun: starting instant run server: is main process
04-08 21:53:06.664 6798-6831/com.platformpetal.platformpetal I/OpenGLRenderer: Initialized EGL, version 1.4
04-08 21:53:06.664 6798-6831/com.platformpetal.platformpetal D/OpenGLRenderer: Swap behavior 1
04-08 21:53:06.665 6798-6831/com.platformpetal.platformpetal W/OpenGLRenderer: Failed to choose config with EGL_SWAP_BEHAVIOR_PRESERVED, retrying without...
04-08 21:53:06.665 6798-6831/com.platformpetal.platformpetal D/OpenGLRenderer: Swap behavior 0
04-08 21:53:08.704 6798-6798/com.platformpetal.platformpetal W/art: Before Android 4.1, method android.graphics.PorterDuffColorFilter android.support.graphics.drawable.VectorDrawableCompat.updateTintFilter(android.graphics.PorterDuffColorFilter, android.content.res.ColorStateList, android.graphics.PorterDuff$Mode) would have incorrectly overridden the package-private method in android.graphics.drawable.Drawable
04-08 21:53:09.158 6798-6798/com.platformpetal.platformpetal W/art: Before Android 4.1, method int android.support.v7.widget.ListViewCompat.lookForSelectablePosition(int, boolean) would have incorrectly overridden the package-private method in android.widget.ListView
04-08 21:53:09.598 6798-6798/com.platformpetal.platformpetal E/WindowManager: android.view.WindowLeaked: Activity com.platformpetal.platformpetal.SplashScreen has leaked window DecorView@aaf4c69[] that was originally added here
                                                                              at android.view.ViewRootImpl.<init>(ViewRootImpl.java:418)
                                                                              at android.view.WindowManagerGlobal.addView(WindowManagerGlobal.java:331)
                                                                              at android.view.WindowManagerImpl.addView(WindowManagerImpl.java:94)
                                                                              at android.app.Dialog.show(Dialog.java:322)
                                                                              at android.app.AlertDialog$Builder.show(AlertDialog.java:1112)
                                                                              at android.app.Activity.performStart(Activity.java:6718)
                                                                              at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2628)
                                                                              at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2726)
                                                                              at android.app.ActivityThread.-wrap12(ActivityThread.java)
                                                                              at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1477)
                                                                              at android.os.Handler.dispatchMessage(Handler.java:102)
                                                                              at android.os.Looper.loop(Looper.java:154)
                                                                              at android.app.ActivityThread.main(ActivityThread.java:6126)
                                                                              at java.lang.reflect.Method.invoke(Native Method)
                                                                              at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:886)
                                                                              at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:776

)

这里的错误消息是针对在消息关闭之前终止的活动。我找不到任何可能导致问题的原因。

附:堆栈溢出不允许有问题的单词问题,所以我写了 prob_lem 附言我对android比较陌生,所以不要苛刻:)

【问题讨论】:

  • 你找到解决这个问题的方法了吗?
  • 没有。我没有。它仍然存在
  • 任何人找到任何解决方案?

标签: android android-layout android-studio


【解决方案1】:

这在https://developer.android.com/about/versions/nougat/android-7.0-changes.html#ndk 中有记录 => 显然,您需要将这些 .so 文件与您的应用程序捆绑在一起。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-28
    • 1970-01-01
    • 1970-01-01
    • 2011-05-01
    • 1970-01-01
    相关资源
    最近更新 更多