Ich erhalte einen Fehler bei der Arbeit mit ConstraintLayout. der Fehler wie folgt aussehen,Android ConstraintLayout konnte nicht instanziiert werden
Failed to instantiate one or more classes
The following classes could not be instantiated
-android.support.constraint.ConstraintLayout
i installiert haben beide Constraint-Layout für Android und Solver für Constraint-Layout.
Ich habe diese Abhängigkeit in meiner app gradle Datei: build.gradle
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.3.0'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
//butterknife for view binding
compile 'com.jakewharton:butterknife:8.6.0'
annotationProcessor 'com.jakewharton:butterknife-compiler:8.6.0'
//bottom bar navigation
compile 'com.roughike:bottom-bar:2.3.1'
//fragment managment library
compile 'com.ncapdevi:frag-nav:2.0.1'
//for ripple animation
compile 'com.balysv:material-ripple:1.0.2'
testCompile 'junit:junit:4.12'
Meine XML-Layout ist das -
<android.support.constraint.ConstraintLayout
xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:context="com.cr.priyankjain.customrom.MainActivity">
<TextView
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:text="Hello World!"
app:layout_constraintBottom_toBottomOf="parent"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintRight_toRightOf="parent"
app:layout_constraintTop_toTopOf="parent" />
</android.support.constraint.ConstraintLayout>
so meine Frage ist, wie kann ich diese entfernen Error ?