预览布局时Android Studio 3.2;
在多个模块中解析资源的ID时,似乎很困惑.
我的另一个模块中的customVIEw.
顺便说一下,AndroID Studio 3.1.4正在运行
Could not resolve resource value: 0x7F0F0117. Or the resolved value
was not of type layout as expected.
androID.content.res.Resources$NotFoundException: Could not resolve resource value: 0x7F0F0117. Or the resolved value was not of type layout as expected.at androID.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1117)at androID.content.res.Resources_Delegate.throwException(Resources_Delegate.java:1093)at androID.content.res.Resources_Delegate.getLayout(Resources_Delegate.java:497)at androID.content.res.Resources.getLayout(Resources.java:1155)at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:421)at com.******.Widget.HotKeyEditVIEw.initVIEw(HotKeyEditVIEw.java:44)at com.******.Widget.HotKeyEditVIEw.<init>(HotKeyEditVIEw.java:34)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:423)at org.jetbrains.androID.uiprevIEw.VIEwLoader.createNewInstance(VIEwLoader.java:401)at org.jetbrains.androID.uiprevIEw.VIEwLoader.loadClass(VIEwLoader.java:184)at org.jetbrains.androID.uiprevIEw.VIEwLoader.loadVIEw(VIEwLoader.java:142)at com.androID.tools.IDea.rendering.LayoutlibCallbackImpl.loadVIEw(LayoutlibCallbackImpl.java:229)at androID.vIEw.BrIDgeInflater.loadCustomVIEw(BrIDgeInflater.java:421)at androID.vIEw.BrIDgeInflater.loadCustomVIEw(BrIDgeInflater.java:432)at androID.vIEw.BrIDgeInflater.createVIEwFromTag(BrIDgeInflater.java:336)at androID.vIEw.LayoutInflater.createVIEwFromTag(LayoutInflater.java:730)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:863)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater.rInflateChildren(LayoutInflater.java:824)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:866)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater.rInflateChildren(LayoutInflater.java:824)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:866)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:162)at androID.vIEw.LayoutInflater.parseInclude(LayoutInflater.java:900)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:859)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater.rInflateChildren(LayoutInflater.java:824)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:866)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater.rInflateChildren(LayoutInflater.java:824)at androID.vIEw.LayoutInflater.rInflate_Original(LayoutInflater.java:866)at androID.vIEw.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)at androID.vIEw.LayoutInflater.rInflate(LayoutInflater.java:837)at androID.vIEw.LayoutInflater.rInflateChildren(LayoutInflater.java:824)at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:515)at androID.vIEw.LayoutInflater.inflate(LayoutInflater.java:394)at com.androID.layoutlib.brIDge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:327)at com.androID.layoutlib.brIDge.BrIDge.createSession(BrIDge.java:386)at com.androID.tools.IDea.layoutlib.Layoutlibrary.createSession(Layoutlibrary.java:193)at com.androID.tools.IDea.rendering.RenderTask.createRenderSession(RenderTask.java:450)at com.androID.tools.IDea.rendering.RenderTask.lambda$inflate(RenderTask.java:590)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)at java.util.concurrent.FutureTask.run(FutureTask.java:266)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)at java.lang.Thread.run(Thread.java:745)
解决方法:
就像在评论中提到的那样,this is a bug in Android Studio.我找到了解决这个问题的方法,即在app模块中创建一个布局,其中只包含lib模块中无法渲染的布局.然后,您可以编辑lib布局,并查看更改转到包含它的应用程序布局.
总结以上是内存溢出为你收集整理的预览版面具有自定义视图时,Android Studio 3.2异常全部内容,希望文章能够帮你解决预览版面具有自定义视图时,Android Studio 3.2异常所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)