{"action":"closed","issue":{"url":"https://api.github.com/repos/wequick/Small/issues/223","repository_url":"https://api.github.com/repos/wequick/Small","labels_url":"https://api.github.com/repos/wequick/Small/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/wequick/Small/issues/223/comments","events_url":"https://api.github.com/repos/wequick/Small/issues/223/events","html_url":"https://github.com/wequick/Small/issues/223","id":166280817,"number":223,"title":"Android N报错No field mActiveResources in class Landroid/app/ResourcesManager","user":{"login":"offbye","id":836403,"avatar_url":"https://avatars.githubusercontent.com/u/836403?v=3","gravatar_id":"","url":"https://api.github.com/users/offbye","html_url":"https://github.com/offbye","followers_url":"https://api.github.com/users/offbye/followers","following_url":"https://api.github.com/users/offbye/following{/other_user}","gists_url":"https://api.github.com/users/offbye/gists{/gist_id}","starred_url":"https://api.github.com/users/offbye/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/offbye/subscriptions","organizations_url":"https://api.github.com/users/offbye/orgs","repos_url":"https://api.github.com/users/offbye/repos","events_url":"https://api.github.com/users/offbye/events{/privacy}","received_events_url":"https://api.github.com/users/offbye/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-19T08:58:52Z","updated_at":"2016-08-09T05:25:57Z","closed_at":"2016-08-09T05:25:57Z","body":"Devsample在Nexus 6手机Android N系统下报错No field mActiveResources in class Landroid/app/ResourcesManager ，但我已经查过Android源码，发现源码有这个字段mActiveResources\r\n源码地址 \r\nhttps://android.googlesource.com/platform/frameworks/base/+/android-n-preview-2/core/java/android/app/ResourcesManager.java\r\n```java\r\n/** @hide */\r\npublic class ResourcesManager {\r\n    static final String TAG = \"ResourcesManager\";\r\n    private static final boolean DEBUG = false;\r\n    private static ResourcesManager sResourcesManager;\r\n    private final ArrayMap<ResourcesKey, WeakReference<Resources> > mActiveResources =\r\n            new ArrayMap<>();\r\n    private final ArrayMap<Pair<Integer, DisplayAdjustments>, WeakReference<Display>> mDisplays =\r\n            new ArrayMap<>();\r\n    CompatibilityInfo mResCompatibilityInfo;\r\n    Configuration mResConfiguration;\r\n    public static ResourcesManager getInstance() {\r\n        synchronized (ResourcesManager.class) {\r\n            if (sResourcesManager == null) {\r\n                sResourcesManager = new ResourcesManager();\r\n            }\r\n            return sResourcesManager;\r\n        }\r\n    }\r\n\r\n```\r\n\r\n\r\n```\r\n07-19 16:49:45.419 30665-30685/net.wequick.example.small I/Adreno: QUALCOMM build                   : ab9e4b3, I3ad86ef6a3\r\n                                                                   Build Date                       : 05/19/16\r\n                                                                   OpenGL ES Shader Compiler Version: XE031.08.00.02\r\n                                                                   Local Branch                     : \r\n                                                                   Remote Branch                    : \r\n                                                                   Remote Branch                    : \r\n                                                                   Reconstruct Branch               : \r\n07-19 16:49:45.517 30665-30685/net.wequick.example.small I/OpenGLRenderer: Initialized EGL, version 1.4\r\n07-19 16:49:45.517 30665-30685/net.wequick.example.small D/OpenGLRenderer: Swap behavior 1\r\n07-19 16:49:45.653 30665-30684/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x7f0900f2\r\n07-19 16:49:45.679 30665-30684/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x7f0900ff\r\n07-19 16:49:45.679 30665-30684/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x7f060014\r\n07-19 16:49:45.707 30665-30684/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x7f09008c\r\n07-19 16:49:45.777 30665-30684/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x7f09008c\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err: java.lang.NoSuchFieldException: No field mActiveResources in class Landroid/app/ResourcesManager; (declaration of 'android.app.ResourcesManager' appears in /system/framework/framework.jar)\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err:     at java.lang.Class.getDeclaredField(Native Method)\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.util.ReflectAccelerator$V19_.updateTopLevelResources(ReflectAccelerator.java:264)\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.util.ReflectAccelerator.setResources(ReflectAccelerator.java:461)\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.ApkBundleLauncher.postSetUp(ApkBundleLauncher.java:400)\r\n07-19 16:49:46.668 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.Bundle.loadBundles(Bundle.java:704)\r\n07-19 16:49:46.669 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.Bundle.loadBundles(Bundle.java:305)\r\n07-19 16:49:46.669 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.Bundle.access$100(Bundle.java:64)\r\n07-19 16:49:46.669 30665-30684/net.wequick.example.small W/System.err:     at net.wequick.small.Bundle$LoadBundleThread.run(Bundle.java:668)\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.672 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.673 30665-30684/net.wequick.example.small W/art: The dalvik.system.DexPathList$Element constructor is not accessible by default. This is a temporary workaround for backwards compatibility with class-loader hacks. Please update your application.\r\n07-19 16:49:46.675 30665-30665/net.wequick.example.small D/Main Plugin: AppContext()\r\n07-19 16:49:46.675 30665-30665/net.wequick.example.small D/Main Plugin: onCreate()\r\n07-19 16:49:46.676 30665-30665/net.wequick.example.small D/Main Plugin: {net.wequick.example.small.app.detail=1, net.wequick.example.small.web.about=1, com.example.mysmall.lib.style=1, net.wequick.example.small.app.mine=1, net.wequick.example.small.app.home=1, net.wequick.example.small.lib.utils=1, net.wequick.example.lib.analytics=1, net.wequick.example.small.app.main=1}\r\n07-19 16:49:46.676 30665-30665/net.wequick.example.small D/Main Plugin: Settings\r\n07-19 16:49:46.712 30665-30665/net.wequick.example.small I/System.out: onActivityPaused net.wequick.example.small.LaunchActivity\r\n07-19 16:49:46.747 30665-30665/net.wequick.example.small I/System.out: ## Small setUp in 1396.08 ms.\r\n07-19 16:49:46.752 30665-30665/net.wequick.example.small I/System.out: ## Small start first activity in 75.18032 ms.\r\n07-19 16:49:46.786 30665-30665/net.wequick.example.small W/ResourceType: No known package when getting value for resource number 0x77020000\r\n07-19 16:49:46.788 30665-30665/net.wequick.example.small D/AndroidRuntime: Shutting down VM\r\n07-19 16:49:46.970 30665-30665/net.wequick.example.small E/AndroidRuntime: FATAL EXCEPTION: main\r\n                                                                           Process: net.wequick.example.small, PID: 30665\r\n                                                                           java.lang.RuntimeException: Unable to start activity ComponentInfo{net.wequick.example.small/net.wequick.example.small.app.main.MainActivity}: android.content.res.Resources$NotFoundException: Resource ID #0x77020000\r\n                                                                               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2631)\r\n                                                                               at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2692)\r\n                                                                               at android.app.ActivityThread.-wrap12(ActivityThread.java)\r\n                                                                               at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445)\r\n                                                                               at android.os.Handler.dispatchMessage(Handler.java:102)\r\n                                                                               at android.os.Looper.loop(Looper.java:154)\r\n                                                                               at android.app.ActivityThread.main(ActivityThread.java:6044)\r\n                                                                               at java.lang.reflect.Method.invoke(Native Method)\r\n                                                                               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)\r\n                                                                               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)\r\n                                                                            Caused by: android.content.res.Resources$NotFoundException: Resource ID #0x77020000\r\n                                                                               at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:182)\r\n                                                                               at android.content.res.Resources.loadXmlResourceParser(Resources.java:2089)\r\n                                                                               at android.content.res.Resources.getLayout(Resources.java:1111)\r\n                                                                               at android.view.LayoutInflater.inflate(LayoutInflater.java:424)\r\n                                                                               at android.view.LayoutInflater.inflate(LayoutInflater.java:377)\r\n                                                                               at android.support.v7.app.AppCompatDelegateImplV7.setContentView(AppCompatDelegateImplV7.java:276)\r\n                                                                               at android.support.v7.app.AppCompatActivity.setContentView(AppCompatActivity.java:139)\r\n                                                                               at net.wequick.example.small.app.main.MainActivity.onCreate(MainActivity.java:71)\r\n                                                                               at android.app.Activity.performCreate(Activity.java:6658)\r\n                                                                               at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)\r\n                                                                               at net.wequick.small.ApkBundleLauncher$InstrumentationWrapper.callActivityOnCreate(ApkBundleLauncher.java:168)\r\n                                                                               at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2584)\r\n                                                                               at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2692) \r\n                                                                               at android.app.ActivityThread.-wrap12(ActivityThread.java) \r\n                                                                               at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1445) \r\n                                                                               at android.os.Handler.dispatchMessage(Handler.java:102) \r\n                                                                               at android.os.Looper.loop(Looper.java:154) \r\n                                                                               at android.app.ActivityThread.main(ActivityThread.java:6044) \r\n                                                                               at java.lang.reflect.Method.invoke(Native Method) \r\n                                                                               at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865) \r\n                                                                               at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755) \r\n07-19 16:50:09.139 30665-30672/net.wequick.example.small W/art: Suspending all threads took: 5.050ms\r\n```"}}
{"actor":{"display_login":"galenlin"}}