Adding Maven Repository Causes An Error - Android.support.v7.widget.appcompattextview Can't Be Instantiated
Note: I have gone through all the related posts and did exactly what was written but nothing worked.I am trying to add ConstraintLayout 1.1.0-beta1 for percent dimensions, but when
Solution 1:
See my answer here. The NullPointerException
related to AppCompatTextView
can be fixed by changing the parent theme in res/values/styles.xml to one with Base
e.g.
<style name="AppTheme" parent="Base.Theme.AppCompat.Light.DarkActionBar">
I just tried it and could use the ConstraintLayout
beta attributes without getting an error.
Solution 2:
Try this.
In your Android Studio ,choose Tools --> Android --> SDK Manager
Then install this.
Edited
Could you show your detail of your intall?
And check your whether install 1.1.0-beta1
Solution 3:
Try Lowering your build version to 25
compileSdkVersion 25
buildToolsVersion "25.0.3"
defaultConfig {
applicationId "com.snake.againimage"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"compile'com.android.support.constraint:constraint-layout:1.+'
Then add the constraint layout
Solution 4:
Have you tried clean project and rebuilding it after changing the library to ConstraintLayout 1.1.0-beta1?
Post a Comment for "Adding Maven Repository Causes An Error - Android.support.v7.widget.appcompattextview Can't Be Instantiated"