Anyone see this weird runtime behavior where it crashes looking for a DefaultPreview method if it's removed? It also seems to run that DefaultPreview method at runtime even though it's supposed to be only for the IDE preview window (breakpoints get hit there instead of the one created in the onCreate method)
Preview window doesn't work too...layout is super simple...two buttons and a textview.
Code compiles fine....though another super weird thing is you have to click the run or debug button 3 times before it actually builds and runs (error msg is D\Work\Android\table timer\app\build\intermediates\compile and runtime not namespaced r class jar\debug\R.jar The process cannot access the file because it is being used by another process.)
Using Gradle 6.5-milestone-1 because of bug with AGP 4.1.0-alpha10 not liking Gradle 6.5.
Can you file a bug with the signature of the function you are putting a @Preview annotation on?
also, make sure to include the version of android studio and of compose you are using
06/08/2020, 2:37 AM
Will do... I'll try to strip down this project so it just includes UI.
Doesn't cause the weird hit run button 3 times thing, but I stripped out a bunch of code that used databinding on launched activities. Shows 2 of the bugs though...the Preview function taking precendence in the launched app, and the broken preview window that's been broken since dev05.