Status Update
Comments
sg...@google.com <sg...@google.com> #2
What theme are you using in the layout editor for rendering? Is it a Material theme? If not, does it work when using a Material theme?
Er...@gtempaccount.com <Er...@gtempaccount.com> #3
ap...@google.com <ap...@google.com> #4
same here, but some different classes - likely same issue though...
theme used: Theme.Material3.DayNight.NoActionBar
Flamingo | 2022.2.1 Canary 9 but was already happening in Canary 8
Android Studio Flamingo | 2022.2.1 Canary 9 Build #AI-222.4345.14.2221.9321504, built on November 22, 2022 Runtime version: 17.0.4.1+0-b2043.56-9127311 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 8192M Cores: 20 Registry: external.system.auto.import.disabled=true ide.text.editor.with.preview.show.floating.toolbar=false gradle.version.catalogs.dynamic.support=true
Non-Bundled Plugins: name.kropp.intellij.makefile (222.4345.14) nl.rubensten.texifyidea (0.7.23) artsiomch.cmake (223.2.1) CMD Support (1.0.5)
The following classes could not be instantiated: - com.google.android.material.textfield.TextInputLayout (Open Class, Show Exception, Clear Cache) - com.google.android.material.appbar.AppBarLayout (Open Class, Show Exception, Clear Cache) Tip: Use View.isInEditMode() in your custom views to skip code or show sample data when shown in the IDE. If this is an unexpected error you can also try to build the project, then manually refresh the layout.
Exception Details java.lang.IllegalArgumentException: Motion easing theme attribute must be an @interpolator resource for ?attr/motionEasingInterpolator attributes or a string for ?attr/motionEasing attributes. at com.google.android.material.motion.MotionUtils.resolveThemeInterpolator(MotionUtils.java:74) at com.google.android.material.textfield.IndicatorViewController.<init>(IndicatorViewController.java:148) at com.google.android.material.textfield.TextInputLayout.<init>(TextInputLayout.java:225) at com.google.android.material.textfield.TextInputLayout.<init>(TextInputLayout.java:451) at jdk.internal.reflect.GeneratedConstructorAccessor1418.newInstance at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) at java.lang.reflect.Constructor.newInstance(Constructor.java:480) at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:965) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1127) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130) at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72) at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101) at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088) at android.view.LayoutInflater.inflate(LayoutInflater.java:686) at android.view.LayoutInflater.inflate(LayoutInflater.java:505)
ap...@google.com <ap...@google.com> #5
ap...@google.com <ap...@google.com> #6
Android Studio version:
Android Studio Electric Eel | 2022.1.1
Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.2
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 16
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.google.mad-scorecard (1.2)
ap...@google.com <ap...@google.com> #7
ap...@google.com <ap...@google.com> #8
I don't know
ap...@google.com <ap...@google.com> #9
Still does not work in Flamingo Beta 5
ap...@google.com <ap...@google.com> #10
java.lang.NullPointerException
at android.content.res.Resources_Theme_Delegate.obtainStyledAttributes(Resources_Theme_Delegate.java:74)
at android.content.res.Resources$Theme.obtainStyledAttributes(Resources.java:1631)
at android.content.Context.obtainStyledAttributes(Context.java:874)
at android.widget.TextView.setTextAppearance(TextView.java:3965)
at androidx.appcompat.widget.AppCompatTextView.setTextAppearance(AppCompatTextView.java:216)
at com.google.android.material.textview.MaterialTextView.setTextAppearance(MaterialTextView.java:106)
at android.widget.TextView.setTextAppearance(TextView.java:3954)
at androidx.core.widget.TextViewCompat.setTextAppearance(TextViewCompat.java:289)
at com.google.android.material.tabs.TabLayout$TabView.updateTab(TabLayout.java:2772)
at com.google.android.material.tabs.TabLayout$TabView.update(TabLayout.java:2801)
at com.google.android.material.tabs.TabLayout$TabView.setTab(TabLayout.java:2713)
at com.google.android.material.tabs.TabLayout.createTabView(TabLayout.java:1673)
at com.google.android.material.tabs.TabLayout.newTab(TabLayout.java:956)
at com.google.android.material.tabs.TabLayout.addTabFromItemView(TabLayout.java:824)
at com.google.android.material.tabs.TabLayout.addViewInternal(TabLayout.java:1730)
at com.google.android.material.tabs.TabLayout.addView(TabLayout.java:1720)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1131)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:1130)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:72)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:1101)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:1088)
at android.view.LayoutInflater.inflate(LayoutInflater.java:686)
at android.view.LayoutInflater.inflate(LayoutInflater.java:505)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:360)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:443)
at com.android.tools.idea.layoutlib.LayoutLibrary.createSession(LayoutLibrary.java:121)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:722)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$9(RenderTask.java:879)
at com.android.tools.idea.rendering.RenderExecutor$runAsyncActionWithTimeout$3.run(RenderExecutor.kt:194)
at com.android.tools.idea.rendering.RenderExecutor$PriorityRunnable.run(RenderExecutor.kt:292)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:829)
ap...@google.com <ap...@google.com> #11
I'm using the following version with material design 1.9.0 and this is still persistent with the Tab-Layout
Android Studio Flamingo | 2022.2.1 Patch 2
Build #AI-222.4459.24.2221.10121639, built on May 12, 2023
Runtime version: 17.0.6+0-b2043.56-9586694 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 3072M
Cores: 4
Registry:
editor.focus.mode.color.light=464b5d
ide.editor.tab.selection.animation=true
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.windowSystem.autoShowProcessPopup=true
ide.instant.shutdown=false
ide.new.editor.tabs.vertical.borders=true
ide.balloon.shadow.size=0
editor.focus.mode.color.dark=464b5d
gradle.version.catalogs.dynamic.support=true
sg...@google.com <sg...@google.com> #12
There was another issue with TabLayout that has only been fixed in Android Studio Giraffe (see
Please file a new issue if this still does not work for you in Giraffe or newer versions of Studio
an...@google.com <an...@google.com> #13
This is now happening for every single xml preview, including drawables, on Giraffe Patch 2.
Happened out of nowhere, sudden massive CPU use non stop, computer started lagging everywhere, forced kill the app after 10min of this nonsense, restarted and no previews for any layouts show up, no matter which .xml file used, new, old, modified, nothing works for the preview now and no warnings show up either. Already tried clearing cache, restarting pc, cleared build files in the project folder, NOTHING WORKS. This is absolutely bonkers, the ability to preview any XML is completely dead and there is no explanation, warning, or error to explain why it is now stuck like this. Unbelievable.
Description
I updated AGP to 8.7.3 (uses R8 8.7.18) and observed one screen began to crash with
NullPointerException
when it called Coroutinejob?.cancel
method.I downgraded back to AGP 8.6.1 (uses R8 8.6.27) which no longer crashes.
I have made a sample project that replicates the code and crash.
Steps to reproduce
alpha
. This creates an obfuscated build.Launch countdown Activity
debug
. This is not obfuscated . Try the above steps and observe it works.If you downgrade the versions and build
alpha
it does not crash.Note my real project and sample project both have
android.enableR8.fullMode=false
ingradle.properties
.