Skip to content

Can not build the app #74

Description

@seljad

Hi, When I add any type of shapeofview to the XML file, I receive * android resource linking failed * error on the build:

Screenshot

XML file:

<?xml version="1.0" encoding="UTF-8"?>
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
    xmlns:app="http://schemas.android.com/apk/res-auto"
    xmlns:tools="http://schemas.android.com/tools"
    android:layout_width="match_parent"
    android:layout_height="match_parent">

    <com.github.florent37.shapeofview.shapes.ArcView
        android:layout_width="match_parent"
        android:layout_height="wrap_content"
        app:layout_constraintTop_toTopOf="parent"
        app:shape_arc_cropDirection="outside"
        app:shape_arc_height="20dp"
        app:shape_arc_position="bottom">

        <ImageView
            android:layout_width="match_parent"
            android:layout_height="wrap_content"
            android:background="#307fe2"
            android:src="@drawable/test_wea" />

    </com.github.florent37.shapeofview.shapes.ArcView>

</androidx.constraintlayout.widget.ConstraintLayout>

And my Gradle File:

    apply plugin: 'com.android.application'
    apply plugin: 'kotlin-android'
    apply plugin: 'kotlin-android-extensions'
    apply plugin: 'kotlin-kapt'

    android {
        compileSdkVersion 30
        buildToolsVersion "30.0.0"

        defaultConfig {
            applicationId "com.example.notes"
            minSdkVersion 23
            targetSdkVersion 30
            versionCode 1
            versionName "1.0"

            testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
        }

        buildTypes {
            release {
                minifyEnabled true
                proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
            }
        }
    }

    dependencies {
        implementation fileTree(dir: "libs", include: ["*.jar"])
        implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:1.3.72"
        implementation 'androidx.appcompat:appcompat:1.3.0-alpha01'
        implementation 'androidx.core:core-ktx:1.3.1'
        implementation 'androidx.legacy:legacy-support-v4:1.0.0'
        implementation 'androidx.lifecycle:lifecycle-extensions:2.2.0'
        implementation 'androidx.constraintlayout:constraintlayout:2.0.0-rc1'
        testImplementation 'junit:junit:4.13'
        androidTestImplementation 'androidx.test.ext:junit:1.1.1'
       androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
        //google libraries
        implementation 'com.google.android.material:material:1.3.0-alpha02'
        implementation 'com.android.volley:volley:1.1.1'
        //circle image view
        implementation 'de.hdodenhof:circleimageview:3.1.0'
        //shape of view
        implementation 'com.github.florent37:shapeofview:1.4.7'
        //picasso
        implementation 'com.squareup.picasso:picasso:2.71828'
        //SDP:dp & SSP:sp
        implementation 'com.intuit.sdp:sdp-android:1.0.6'
        implementation 'com.intuit.ssp:ssp-android:1.0.6'
        //room database
        implementation "androidx.room:room-runtime:2.2.5"
        kapt "androidx.room:room-compiler:2.2.5"
    }

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions