Android Studio Error: Cannot Find Symbol Class Adapterviewcompat With Compilesdkversion 23 And Buildtoolsversion '23.0.1'
This is my gradle file and I am getting error: cannot find symbol import android.support.v7.internal.widget.AdapterViewCompat; error:package AdapterViewCompat does not exist. G
Solution 1:
It happens because the
android.support.v7.internal.widget.AdapterViewCompat;
doesn't exist in appcompat v23 (while it existed in v22). You can check it in
androidsdk\extras\android\m2repository\com\android\support\appcompat-v7\23.1.0\appcompat-v7-23.1.0-sources.jar
In general don't use the class inside the internal package.
Solution 2:
android.support.v7.internal.widget.AdapterViewCompat;
Edit
You should use buildToolsVersion "22.0.1" because of Its obsolete in 23 .
Solution 3:
if you have existing code then change AdapterViewCompat to AdapterView and import android.widget.AdapterView; if you are writing new code then use AdapterView instead AdapterViewcompact as AdapterViewCompact deprecated in api v23 or higher
Post a Comment for "Android Studio Error: Cannot Find Symbol Class Adapterviewcompat With Compilesdkversion 23 And Buildtoolsversion '23.0.1'"