在genymotion设备中运行时,膨胀类androidx.constraintlayout.widget.constraintlayout时出错
当我在genymotion虚拟设备中运行我的应用程序时,出现错误,我的应用程序崩溃。错误为:在genymotion设备中运行时,膨胀类androidx.constraintlayout.widget.constraintlayout时出错,android,Android,当我在genymotion虚拟设备中运行我的应用程序时,出现错误,我的应用程序崩溃。错误为: 5-31 13:15:18.838 1205-1205/com.mypackage E/AndroidRuntime: FATAL EXCEPTION: main java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage/com.mypackage.StarterActivity}: andr
5-31 13:15:18.838 1205-1205/com.mypackage E/AndroidRuntime: FATAL EXCEPTION: main
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.mypackage/com.mypackage.StarterActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class androidx.constraintlayout.widget.ConstraintLayout
我的应用程序渐变依赖项:
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.0.0-beta01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.2'
implementation 'com.google.android.material:material:1.0.0-beta01'
implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.0-alpha4'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0-alpha4'
implementation 'androidx.recyclerview:recyclerview:1.0.0-rc02'
implementation 'androidx.viewpager:viewpager:1.0.0'
implementation 'com.intuit.sdp:sdp-android:1.0.6'
注意:我的应用程序在真实设备上运行良好。确保约束布局已更新到最新版本:
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
并替换xml标记名
<androidx.constraintlayout.ConstraintLayout>
与
请分享你的应用程序gradledeendency@ismailalaoui我加上了格拉德尔
<androidx.constraintlayout.widget.ConstraintLayout>