fornewid/neumorphism

Could not resolve com.github.fornewid:neumorphism

samanehsedigh opened this issue · 1 comments

Hi!
I am using android studio arctic fox and this is my build.gradle(project)

buildscript {
    repositories {
        google()
        mavenCentral()

        maven { url "https://jitpack.io" }

    }


    dependencies {
        classpath "com.android.tools.build:gradle:7.0.2"

        // NOTE: Do not place your application dependencies here; they belong
        // in the individual module build.gradle files
    }
}



task clean(type: Delete) {
    delete rootProject.buildDir
}

and this is my build.gradle(module):

plugins {
    id 'com.android.application'
}

android {
    compileSdk 31

    defaultConfig {
        applicationId "com.example.neob"
        minSdk 21
        targetSdk 31
        versionCode 1
        versionName "1.0"

        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }

    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {

    implementation 'androidx.appcompat:appcompat:1.2.0'
    implementation 'com.google.android.material:material:1.3.0'
    testImplementation 'junit:junit:4.+'
    androidTestImplementation 'androidx.test.ext:junit:1.1.2'
    androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'
    implementation 'com.github.fornewid:neumorphism:{latest_version}'
}

and I am getting:
Unable to resolve dependency for ':app@debugUnitTest/compileClasspath': Could not resolve com.github.fornewid:neumorphism:{latest_version}.
Show Details
Affected Modules: app

where I am doing wrong?

it is not "implementation 'com.github.fornewid:neumorphism:{latest_version}'"
it should be "implementation 'com.github.fornewid:neumorphism:0.3.0'".
chang latest_version to the new version number.