rogergcc / AndroidEducationApp

Android Education App adding Design Course App UI
251 stars 73 forks source link

Error : package android.support.v4.widget does not exist #6

Closed shivam-2701 closed 1 year ago

shivam-2701 commented 1 year ago

error: package android.support.v4.widget does not exist import android.support.v4.widget.NestedScrollView;

The above appears when trying to build the app

The state of build.gradle file

apply plugin: 'com.android.application'

    android {
        compileSdkVersion 30
        defaultConfig {
            applicationId "com.appsnipp.education"
            minSdkVersion 21
            targetSdkVersion 30
            versionCode 1
            versionName "1.0"
            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }
        buildTypes {
            release {
                minifyEnabled false
                proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
            }
        }
        compileOptions {
            sourceCompatibility JavaVersion.VERSION_1_8
            targetCompatibility JavaVersion.VERSION_1_8
        }
        buildFeatures {
    //        dataBinding true
            viewBinding true
        }

    }

    dependencies {
        def navigation_version = "2.3.0"

        implementation fileTree(dir: 'libs', include: ['*.jar'])
        implementation 'androidx.appcompat:appcompat:1.2.0'

        implementation 'androidx.cardview:cardview:1.0.0'
        implementation 'androidx.constraintlayout:constraintlayout:2.0.4'
        implementation 'androidx.legacy:legacy-support-v4:1.0.0'
        testImplementation 'junit:junit:4.13'
        androidTestImplementation 'androidx.test.ext:junit:1.1.2'
        androidTestImplementation 'androidx.test.espresso:espresso-core:3.3.0'

        implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
        // jetpack navigation component
        implementation "androidx.navigation:navigation-fragment:$navigation_version"
        implementation "androidx.navigation:navigation-ui:$navigation_version"
        implementation "androidx.navigation:navigation-dynamic-features-fragment:$navigation_version"
        implementation 'com.android.support:support-v4:+'
        //UI
        implementation 'com.google.android.material:material:1.0.0'
        implementation 'androidx.viewpager2:viewpager2:1.0.0-beta05'

        implementation 'de.hdodenhof:circleimageview:3.0.1'
    //    implementation 'com.google.android.gms:play-services-auth:17.0.0'
    //    implementation 'com.jaredrummler:material-spinner:1.3.1'
        implementation 'com.airbnb.android:lottie:2.7.0'

    //    implementation 'com.yarolegovich:discrete-scrollview:1.5.1'

        implementation 'com.github.bumptech.glide:glide:4.11.0'

        // Reactive Streams (convert Observable to LiveData)
        def reactivestreams_version = "1.1.1"
        implementation "android.arch.lifecycle:reactivestreams:$reactivestreams_version"

        // Room
        def room_version = "2.2.6"

        //RxJava
        implementation 'io.reactivex.rxjava2:rxandroid:2.1.1'
        implementation 'io.reactivex.rxjava2:rxjava:2.2.15'
        implementation "androidx.room:room-runtime:$room_version"
        annotationProcessor "androidx.room:room-compiler:$room_version"
        implementation "androidx.room:room-rxjava2:$room_version"

        // logger
        implementation "com.jakewharton.timber:timber:4.5.1"
    }
rogergcc commented 1 year ago

i'll take a look at it

rogergcc commented 1 year ago

com.android.support:support-v4:+ is not in the code