这是导入语句,但仍然出现错误
import android.support.v7.p033a.C0517a;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_alertDialogButtonGroupStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_autoCompleteTextViewStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_buttonBarNegativeButtonStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_buttonBarNeutralButtonStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_buttonBarStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_buttonStyleSmall;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_checkboxStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorAccent;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorBackgroundFloating;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorButtonNormal;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorControlActivated;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorControlHighlight;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorControlNormal;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorError;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorPrimary;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorPrimaryDark;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_colorSwitchThumbNormal;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_dividerHorizontal;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_imageButtonStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_switchStyle;
import static android.support.v7.p033a.C0517a.C0516j.AppCompatTheme_textAppearanceListItemSmall;
这是此软件包的用途。该应用程序的支持文件中确实存在以下Java文件
case C0517a.C0516j.AppCompatTheme_colorBackgroundFloating /*49*/:
if (string.equals("1")) {
z = true;
break;
}
break;
}
答案 0 :(得分:0)
假设您正在使用Gradle,则应在应用程序gradle中添加以下行:
api 'com.android.support:appcompat-v7:28.0.0'
或
api 'androidx.appcompat:appcompat:1.1.0-beta01'
与androidX
重建项目后,Android Studio应该处理导入语句。