How to fix 'Cannot Resolve Symbol 'v7' error in Android StudioHow to save an Android Activity state using save instance state?R cannot be resolved - Android errorWhy is the Android emulator so slow? How can we speed up the Android emulator?“Debug certificate expired” error in Eclipse Android pluginsHow do I fix android.os.NetworkOnMainThreadException?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionAndroid Studio: Add jar as library?“cannot resolve symbol R” in Android StudioAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'

How to run a command 1 out of N times in Bash

Do artifacts count as creatures when they are put into a graveyard while March of the Machines is in play?

Is it rude to ask my opponent to resign an online game when they have a lost endgame?

Meaning of "educating the ice"

Using font to highlight a god's speech in dialogue

Function of the separated, individual solar cells on Telstar 1 and 2? Why were they "special"?

Would there be balance issues if I allowed opportunity attacks against any creature, not just hostile ones?

How to align values in table according to the pm and point?

Remove ads in Viber for PC

How do you get the angle of the lid from the CLI?

How is total raw calculated for Science Pack 2?

How can I oppose my advisor granting gift authorship to a collaborator?

Visiting girlfriend in the USA

Divide Numbers by 0

Is mathematics truth?

Why do old games use flashing as means of showing damage?

What happens if you just start drawing from the Deck of Many Things without declaring any number of cards?

What is the most likely cause of short, quick, and useless reviews?

Do we know the problems the University of Manchester's Transistor Computer was intended to solve?

Do index funds really have double-digit percents annual return rates?

What is the maximal acceptable delay between pilot's input and flight control surface actuation?

Can my UK debt be collected because I have to return to US?

Heuristic argument for the Riemann Hypothesis

How do you manage to study and have a balance in your life at the same time?



How to fix 'Cannot Resolve Symbol 'v7' error in Android Studio


How to save an Android Activity state using save instance state?R cannot be resolved - Android errorWhy is the Android emulator so slow? How can we speed up the Android emulator?“Debug certificate expired” error in Eclipse Android pluginsHow do I fix android.os.NetworkOnMainThreadException?How to fix java.lang.UnsupportedClassVersionError: Unsupported major.minor versionAndroid Studio: Add jar as library?“cannot resolve symbol R” in Android StudioAndroid Studio 3.2.1 - New project fails to runCould not find class 'dalvik.system…'






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I'm trying to use the android support recyclerView widget, and though I've added all the dependencies to my build.gradle file (I think), the line "import android.support.v7.widget.RecyclerView;" in my activity isn't resolving. I'm new to Android Studio, so I might be missing something very basic.



So far I've tried adding the google repository in allprojects of the project build gradle, as well as that of my module build gradle. I've also shifted around my dependencies and tried changing version numbers. And I tried invalidating caches and restarting. I do seem to be able to import "import androidx.recyclerview.widget.RecyclerView;", but that isn't the same from what I've heard.



This is my build gradle file:



//noinspection GradleCompatible
apply plugin: 'com.android.application'
android
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig
applicationId "com.example.chaos"
minSdkVersion 20
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildTypes
customDebugType
debuggable true

release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:design:28.0.0'
//implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'

// implementation 'com.android.support:support-v7'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0-alpha02',
exclude group: 'com.android.support', module: 'support-annotations'
)



And then this is the import I'm attempting in my main activity. It seems I can import android.support.v4 libraries, but v7 isn't even an auto-complete option. I'd appreciate the help!



import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;


I expect the import line to resolve, as it currently doesn't.










share|improve this question


























  • There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

    – cutiko
    Mar 28 at 1:25











  • as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

    – bensadiku
    Mar 28 at 1:30











  • Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

    – EnigmaticBacon
    Mar 28 at 2:22

















2















I'm trying to use the android support recyclerView widget, and though I've added all the dependencies to my build.gradle file (I think), the line "import android.support.v7.widget.RecyclerView;" in my activity isn't resolving. I'm new to Android Studio, so I might be missing something very basic.



So far I've tried adding the google repository in allprojects of the project build gradle, as well as that of my module build gradle. I've also shifted around my dependencies and tried changing version numbers. And I tried invalidating caches and restarting. I do seem to be able to import "import androidx.recyclerview.widget.RecyclerView;", but that isn't the same from what I've heard.



This is my build gradle file:



//noinspection GradleCompatible
apply plugin: 'com.android.application'
android
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig
applicationId "com.example.chaos"
minSdkVersion 20
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildTypes
customDebugType
debuggable true

release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:design:28.0.0'
//implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'

// implementation 'com.android.support:support-v7'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0-alpha02',
exclude group: 'com.android.support', module: 'support-annotations'
)



And then this is the import I'm attempting in my main activity. It seems I can import android.support.v4 libraries, but v7 isn't even an auto-complete option. I'd appreciate the help!



import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;


I expect the import line to resolve, as it currently doesn't.










share|improve this question


























  • There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

    – cutiko
    Mar 28 at 1:25











  • as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

    – bensadiku
    Mar 28 at 1:30











  • Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

    – EnigmaticBacon
    Mar 28 at 2:22













2












2








2








I'm trying to use the android support recyclerView widget, and though I've added all the dependencies to my build.gradle file (I think), the line "import android.support.v7.widget.RecyclerView;" in my activity isn't resolving. I'm new to Android Studio, so I might be missing something very basic.



So far I've tried adding the google repository in allprojects of the project build gradle, as well as that of my module build gradle. I've also shifted around my dependencies and tried changing version numbers. And I tried invalidating caches and restarting. I do seem to be able to import "import androidx.recyclerview.widget.RecyclerView;", but that isn't the same from what I've heard.



This is my build gradle file:



//noinspection GradleCompatible
apply plugin: 'com.android.application'
android
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig
applicationId "com.example.chaos"
minSdkVersion 20
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildTypes
customDebugType
debuggable true

release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:design:28.0.0'
//implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'

// implementation 'com.android.support:support-v7'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0-alpha02',
exclude group: 'com.android.support', module: 'support-annotations'
)



And then this is the import I'm attempting in my main activity. It seems I can import android.support.v4 libraries, but v7 isn't even an auto-complete option. I'd appreciate the help!



import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;


I expect the import line to resolve, as it currently doesn't.










share|improve this question
















I'm trying to use the android support recyclerView widget, and though I've added all the dependencies to my build.gradle file (I think), the line "import android.support.v7.widget.RecyclerView;" in my activity isn't resolving. I'm new to Android Studio, so I might be missing something very basic.



So far I've tried adding the google repository in allprojects of the project build gradle, as well as that of my module build gradle. I've also shifted around my dependencies and tried changing version numbers. And I tried invalidating caches and restarting. I do seem to be able to import "import androidx.recyclerview.widget.RecyclerView;", but that isn't the same from what I've heard.



This is my build gradle file:



//noinspection GradleCompatible
apply plugin: 'com.android.application'
android
compileSdkVersion 28
buildToolsVersion '28.0.3'
defaultConfig
applicationId "com.example.chaos"
minSdkVersion 20
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

buildTypes
customDebugType
debuggable true

release
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'




dependencies
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
implementation 'com.android.support:design:28.0.0'
//implementation 'com.android.support:recyclerview-v7:28.0.0'

implementation 'android.arch.persistence.room:runtime:1.1.1'
annotationProcessor 'android.arch.persistence.room:compiler:1.1.1'
androidTestImplementation 'android.arch.persistence.room:testing:1.1.1'

// implementation 'com.android.support:support-v7'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.1.2-alpha02'
androidTestImplementation ('androidx.test.espresso:espresso-core:3.2.0-alpha02',
exclude group: 'com.android.support', module: 'support-annotations'
)



And then this is the import I'm attempting in my main activity. It seems I can import android.support.v4 libraries, but v7 isn't even an auto-complete option. I'd appreciate the help!



import android.support.v7.app.AppCompatActivity;
import android.support.v7.widget.RecyclerView;


I expect the import line to resolve, as it currently doesn't.







java android android-recyclerview






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 28 at 6:16









Zoe

15.7k12 gold badges66 silver badges96 bronze badges




15.7k12 gold badges66 silver badges96 bronze badges










asked Mar 28 at 1:22









EnigmaticBaconEnigmaticBacon

16111 bronze badges




16111 bronze badges















  • There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

    – cutiko
    Mar 28 at 1:25











  • as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

    – bensadiku
    Mar 28 at 1:30











  • Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

    – EnigmaticBacon
    Mar 28 at 2:22

















  • There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

    – cutiko
    Mar 28 at 1:25











  • as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

    – bensadiku
    Mar 28 at 1:30











  • Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

    – EnigmaticBacon
    Mar 28 at 2:22
















There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

– cutiko
Mar 28 at 1:25





There are a couple of things you should check, did the grafle build sync? And mostly, you cant combine androidx with support, you have to choose

– cutiko
Mar 28 at 1:25













as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

– bensadiku
Mar 28 at 1:30





as cutiko said, this could the android x issue. Refactor to AndroidX again, if the issue is still there, invalidate cache.

– bensadiku
Mar 28 at 1:30













Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

– EnigmaticBacon
Mar 28 at 2:22





Is there way to take back my use of AndroidX? The gradle build is indeed synced :)

– EnigmaticBacon
Mar 28 at 2:22












1 Answer
1






active

oldest

votes


















2















If you are using Android X, try this dependency instead



implementation 'androidx.recyclerview:recyclerview:1.0.0'






share|improve this answer

























  • Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

    – EnigmaticBacon
    Mar 28 at 1:50











  • When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

    – bensadiku
    Jul 24 at 18:41










Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388847%2fhow-to-fix-cannot-resolve-symbol-v7-error-in-android-studio%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









2















If you are using Android X, try this dependency instead



implementation 'androidx.recyclerview:recyclerview:1.0.0'






share|improve this answer

























  • Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

    – EnigmaticBacon
    Mar 28 at 1:50











  • When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

    – bensadiku
    Jul 24 at 18:41















2















If you are using Android X, try this dependency instead



implementation 'androidx.recyclerview:recyclerview:1.0.0'






share|improve this answer

























  • Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

    – EnigmaticBacon
    Mar 28 at 1:50











  • When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

    – bensadiku
    Jul 24 at 18:41













2














2










2









If you are using Android X, try this dependency instead



implementation 'androidx.recyclerview:recyclerview:1.0.0'






share|improve this answer













If you are using Android X, try this dependency instead



implementation 'androidx.recyclerview:recyclerview:1.0.0'







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 28 at 1:34









bensadikubensadiku

3331 silver badge10 bronze badges




3331 silver badge10 bronze badges















  • Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

    – EnigmaticBacon
    Mar 28 at 1:50











  • When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

    – bensadiku
    Jul 24 at 18:41

















  • Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

    – EnigmaticBacon
    Mar 28 at 1:50











  • When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

    – bensadiku
    Jul 24 at 18:41
















Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

– EnigmaticBacon
Mar 28 at 1:50





Is there a way I can choose not to use AndroidX anymore? Or is that a bad idea?

– EnigmaticBacon
Mar 28 at 1:50













When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

– bensadiku
Jul 24 at 18:41





When creating the project you can uncheck AndroidX option. However, i do not recommend doing that. The old support libraries will no longer be updated. Only AndroidX from now on.

– bensadiku
Jul 24 at 18:41








Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.







Got a question that you can’t ask on public Stack Overflow? Learn more about sharing private information with Stack Overflow for Teams.



















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55388847%2fhow-to-fix-cannot-resolve-symbol-v7-error-in-android-studio%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현