Fixed
Status Update
Comments
lb...@gmail.com <lb...@gmail.com>
sr...@google.com <sr...@google.com>
jl...@google.com <jl...@google.com>
tn...@google.com <tn...@google.com>
tn...@google.com <tn...@google.com> #2
I've submitted a fix for this, which should (I hope) make it into Jellyfish Canary 12. There's a relatively straightforward workaround, which is to explicitly declare the version of the com.android.tools.build:gradle
artifact in all build files -- in the screenshot, your project has a versioned classpath
dependency, but also an unversioned one, and it's that unversioned one that tripped up the AGP Upgrade Assistant. Since there is that workaround of making sure that all the classpath dependencies on com.android.tools.build:gradle
have an explicit version, we probably won't patch this for Iguana, I'm afraid.
Thanks very much for the report!
Description
STEPS TO REPRODUCE:
1. Use this code:
Example:
class MainActivity : AppCompatActivity() {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_main)
val view = findViewById<View>(android.R.id.content)!!
ObjectAnimatorEx.ofFloat(view, View.ALPHA, 1f).setDuration(500).start()
}
object ObjectAnimatorEx {
@JvmStatic
fun <T> ofFloat(target: T, property: Property<T, Float>, vararg values: Float): ObjectAnimator {
return ObjectAnimator.ofFloat(target, property, *values)
}
}
}
The bug is that you get a warning about the animation not being started.
------------------
Studio Build:
Version of Gradle Plugin:
Version of Gradle:
Version of Java:
OS:
Android Studio Flamingo | 2022.2.1 Canary 4
Build #AI-222.4167.29.2221.9153536, built on October 8, 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: 9048M
Cores: 12
Registry:
external.system.auto.import.disabled=true
debugger.watches.in.variables=false
ide.text.editor.with.preview.show.floating.toolbar=false
ide.images.show.chessboard=true
Non-Bundled Plugins:
idea.plugin.protoeditor (222.4167.21)
com.intellij.marketplace (222.4167.37)
com.dubreuia (2.3.0)
com.dethlex.numberconverter (1.5.0)
String Manipulation (9.5.1)
Show As ... (1.0.3)
GenerateSerializationHelpers (1.0.6)
GenerateSerialVersionUID (3.0.3)
com.google.mad-scorecard (1.2)
net.aquadc.mike.plugin (0.26)
izhangzhihao.rainbow.brackets (6.26)
com.ppismerov.ksvu (0.0.1)