You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
even with the dependency loaded in the app gradle file, Link classes are "unable to resolve"
Environment
Android Studio 4.1, Windows PC
Steps to Reproduce
-add implementation "com.plaid.link:sdk-core:3.7.1" to app gradle file
-make a java class inside app/src/main
-import classes like:
import com.plaid.link.OpenPlaidLink;
import com.plaid.link.Plaid;
.
-none of them are recognized.
here is my app gradle build file:
`plugins {
id 'com.android.application'
id 'kotlin-android'
}
and here is my root gradle build file:
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.10"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
Correct. I cloned the project as well to make sure, and I get the same unresolved packages without anything being changed. Here's a screen shot of that last class file you linked to. EDIT: It seems to actually happen in the ks files and the Java files, and sometimes it alternates.
SavedByZero
changed the title
java code doesn't recognize link classes
code doesn't recognize link classes
Mar 18, 2022
Are you able to build via command line? You can verify that by running ./gradlew assembleDebug.
If that passes, that would indicate this is an Android Studio issue.
To fix the Android Studio issue:
Try invalidate caches & restart in Android Studio
If that doesn't work, delete the .idea folder in your project
If that doesn't work, delete the .gradle folder in your user home: rm -rf ~/.gradle
The problem
even with the dependency loaded in the app gradle file, Link classes are "unable to resolve"
Environment
Android Studio 4.1, Windows PC
Steps to Reproduce
-add implementation "com.plaid.link:sdk-core:3.7.1" to app gradle file
-make a java class inside app/src/main
-import classes like:
import com.plaid.link.OpenPlaidLink;
import com.plaid.link.Plaid;
.
-none of them are recognized.
here is my app gradle build file:
`plugins {
id 'com.android.application'
id 'kotlin-android'
}
android {
compileSdkVersion 31
buildToolsVersion "30.0.2"
}
dependencies {
implementation ("com.plaid.link:sdk-core:3.7.1") {
}`
and here is my root gradle build file:
`// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.10"
repositories {
google()
jcenter()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:4.1.0"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
allprojects {
repositories {
google()
jcenter()
mavenCentral()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}`
The text was updated successfully, but these errors were encountered: