plattysoft / Leonids

A Particle System for standard Android UI: http://plattysoft.github.io/Leonids/
Apache License 2.0
2.28k stars 397 forks source link

Cannot resolve 'plattysoft' symbol #120

Open conradrado opened 6 days ago

conradrado commented 6 days ago

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 commented 5 days ago

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.