Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot resolve 'plattysoft' symbol #120

Open
conradrado opened this issue Nov 24, 2024 · 1 comment
Open

Cannot resolve 'plattysoft' symbol #120

conradrado opened this issue Nov 24, 2024 · 1 comment

Comments

@conradrado
Copy link

conradrado commented Nov 24, 2024

so I set my build.gradle.kts file and settings.gradle.kts files like this

build.gradle.kts(app) file:

plugins {
    id("com.android.application")
}

android {
    namespace = "--myproject"
    compileSdk = 34

    defaultConfig {
        applicationId = "--myproject"
        minSdk = 24
        targetSdk = 34
        versionCode = 1
        versionName = "1.0"

        testInstrumentationRunner = "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            isMinifyEnabled = false
            proguardFiles(
                getDefaultProguardFile("proguard-android-optimize.txt"),
                "proguard-rules.pro"
            )
        }
    }
    compileOptions {
        sourceCompatibility = JavaVersion.VERSION_11
        targetCompatibility = JavaVersion.VERSION_11
    }
    buildFeatures {
        viewBinding = true
    }
}

dependencies {
    implementation("androidx.appcompat:appcompat:1.3.0")
    implementation("com.google.android.material:material:1.4.0")
    implementation("androidx.constraintlayout:constraintlayout:2.1.0")
    implementation("androidx.lifecycle:lifecycle-livedata-ktx:2.3.1")
    implementation("androidx.lifecycle:lifecycle-viewmodel-ktx:2.3.1")
    implementation("androidx.navigation:navigation-fragment-ktx:2.3.5")
    implementation("androidx.navigation:navigation-ui-ktx:2.3.5")
    testImplementation("junit:junit:4.13.2")
    androidTestImplementation("androidx.test.ext:junit:1.1.3")
    androidTestImplementation("androidx.test.espresso:espresso-core:3.4.0")

    implementation("com.github.plattysoft:Leonids:1.3.2")
}

and this is settings.gradle.kts file

pluginManagement {
    repositories {
        gradlePluginPortal()
        google()
        mavenCentral()
        maven { url = uri("https://jitpack.io") }
    }
}

dependencyResolutionManagement {
    repositories {
        google()
        mavenCentral()
        maven { url = uri("https://jitpack.io") }
    }
}

rootProject.name = "Roullete"
include(":app")

I cleaned/rebuild the project, Invalidate caches.
Yet, java files said they cannot resolve symbol 'plattysoft'

Is it because I set the wrong repository url in build.gradle file?

@plattysoft
Copy link
Owner

The project has not been available on gradke since done jfrog changes years ago, I suggested people to just include the .jar file.

As of today, I think XML views should be hardly used in new apps, and there's a compose-friendly library that already does particle system animations, that's the path I recommend.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants