Android Studio Update (version 1.2.1.1) - Cannot resolve symbol "TintCheckBox"

yesterday i updated my android studio and after updating i get an error in my setup on this line

switch (name) {
            case "EditText":
                return new TintEditText(this, attrs);
            case "Spinner":
                return new TintSpinner(this, attrs);
            case "CheckBox":
                return new TintCheckBox(this, attrs);
            case "RadioButton":
                return new TintRadioButton(this, attrs);
            case "CheckedTextView":
                return new TintCheckedTextView(this, attrs);
        }

      

TintEditText, TintSpinner, TintCheckBox, TintRadioButton, and TintCheckedTextView say "could not resolve character ..."

In these import statements

import android.support.v7.internal.widget.TintCheckBox;
import android.support.v7.internal.widget.TintCheckedTextView;
import android.support.v7.internal.widget.TintEditText;
import android.support.v7.internal.widget.TintRadioButton;
import android.support.v7.internal.widget.TintSpinner;

      

it says "unused import statement" and "cannot resolve symbol ..."

Other import statements such as

import android.support.v7.widget.Toolbar;

      

works perfect.

My addictions

compile 'com.android.support:appcompat-v7:22.2.0'
compile 'com.android.support:support-v4:22.2.0'

      

In Android SDK Manager, I uninstalled the android repository and support library and installed it again, but that didn't help. I also did clean, rebuilt and gradle sync, but still.

My Android Studio version is now 1.2.1.1

+3


source to share


2 answers


Like Gabriele Mariotti, these classes do not exist in appcompat v22.2 I updated android studio and support library at the same time, so I thought android studio has a bug. I changed my code not using these classes and it works



+1


source


Use AppCompatCheckBox

instead TintCheckBox

.



0


source







All Articles