java.lang.NoSuchFieldError: No static field abc_ic_ab_back_mtrl_am_alpha of type I in class Landroid

莫道桑榆晚,为霞尚满天。这篇文章主要讲述java.lang.NoSuchFieldError: No static field abc_ic_ab_back_mtrl_am_alpha of type I in class Landroid相关的知识,希望能为你提供帮助。
出现java.lang.NoSuchFieldError: No static field abc_ic_ab_back_mtrl_am_alpha of type I in class Landroid/support/v7/appcompat/R$drawable问题,
【java.lang.NoSuchFieldError: No static field abc_ic_ab_back_mtrl_am_alpha of type I in class Landroid】通过网上查找问题,发现是由于v7包版本不一致,里面的abc_ic_ab_back_mtrl_am_alpha 文件有修改名称导致,所以将build.gradle文件中的依赖文件:

compile ‘com.android.support:appcompat-v7:25.1.1‘修改为:compile ‘com.android.support:appcompat-v7:23.2.1‘即可,注意

compileSdkVersion 也需要修改为 23


    推荐阅读