运动编辑器在Android Studio 4.0.1中不起作用 [英] Motion editor not working in Android studio 4.0.1
问题描述
我试图在android studio 4.0.1中设置动作布局,并且一切正常,直到我在动作编辑器中进行编辑.它可以正常显示,但是一旦我在运动场景中编辑某些内容,它就会显示.
I am trying to set up motion layout in android studio 4.0.1 and everything works fine until I edit in motion editor. It render fine but as soon as I edit something in motion scene it shows .
但是我用
implementation 'com.google.android.material:material:1.2.0'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1'
implementation 'androidx.appcompat:appcompat:1.1.0'
implementation 'androidx.core:core-ktx:1.3.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0'
并且android构建工具的版本是
and android build tool version is
classpath 'com.android.tools.build:gradle:4.0.1'
和gradle版本是
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip
我尝试清理>重建项目;使缓存无效并重新启动,删除.idea中的lib fold.我有什么想念的,但是需要进行配置才能使用Motion Layout吗?
I try clean>rebuild the project; invalidate cache and restart, delete lib fold in .idea. Is there any thing that I miss but need to config to work with Motion Layout?
推荐答案
尝试实现'androidx.constraintlayout:constraintlayout:2.0.0-beta6'
而不是实现'androidx.constraintlayout:Constraintlayout:2.0.0-rc1'
或其他测试版,请参见约束布局
Try implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta6'
instead of implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1'
or other beta version here at Constraint Layout
这篇关于运动编辑器在Android Studio 4.0.1中不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!