Status Update
Comments
gh...@google.com <gh...@google.com>
je...@google.com <je...@google.com>
st...@google.com <st...@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?
st...@google.com <st...@google.com> #3
da...@google.com <da...@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)
jo...@google.com <jo...@google.com> #5
da...@google.com <da...@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)
Description
AI-201.8743.12.41.7199119, JRE 1.8.0_242-release-1644-b3-6222593x64 JetBrains s.r.o, OS Linux(amd64) v5.11.0-18-generic, screens 5120x2880, 5120x2880
AS: 4.1.3; Kotlin plugin: 1.4.32-release-Studio4.1-1; Android Gradle Plugin: 4.1.3; Gradle: 6.5; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: 3.10.2, from PATH: 3.6.2
We are using prefab to package a native-only library in a submodule of our project that is then referenced as a dependency of our main application module. We have found that the first build works fine but subsequent builds don't because, even though any changes get compiled into new shared object files, those shared object files aren't being packaged into the AAR. Instead, the stale asset is used and the new changes aren't reflected in the build.
Currently, we are using a workaround where we automatically delete the build/intermediates/prefab_package directory in a Gradle preBuild step. This seems to fix the problem, but shouldn't be necessary.