Skip to content

Illegal char <:> in auto-generated values.xml #74

@thewolfprod

Description

@thewolfprod

What kind of issue is this?

  • Question. If you want to ask how to do something, or to understand why something isn't
    working the way you expect it to.

  • Bug report. Please provide your device name, device OS version, and describe the reproduction steps.

  • Feature Request. Telling us what problem you’re trying to solve.

Info:
  • PinView version: 1.4.4
  • Device OS version:
  • Device Name:
  • Android Studio: Chipmunk | 2021.2.1 built on April 28, 2022
Description:

After adding this library, project do not want to compile because I get the error on app:mergeDebugResources:

com.android.aaptcompiler.ResourceCompilationException:
Resource compilation failed
(Failed to compile values resource file C:\Users\hesam\AndroidStudioProjects\RecognizeProject\app\build\intermediates\incremental\debug\mergeDebugResources\merged.dir\values\values.xml. 
Cause: java.nio.file.InvalidPathException: Illegal char <:> at index 40: com.recognize.app-mergeDebugResources-33:/values/values.xml).

After removing the library from the project, the error does not occur.

I don't see any thread in Issues with same problem here so it's a bit strange to that this doesn't want work for me.

Reproduction Steps:
  1. Import library - in build.gradle:
    implementation 'io.github.chaosleung:pinview:1.4.4'

other libs that i use:
    implementation platform('com.google.firebase:firebase-bom:30.0.1')
    implementation 'com.google.firebase:firebase-auth'
    implementation 'com.google.firebase:firebase-database'
    implementation 'com.google.firebase:firebase-storage'
    implementation 'com.google.firebase:firebase-analytics'
    implementation 'com.google.firebase:firebase-crashlytics'
    implementation 'com.google.firebase:firebase-perf'
    implementation 'androidx.appcompat:appcompat:1.4.1'
    implementation 'com.google.android.material:material:1.6.0'
    implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
    implementation 'io.github.yanndroid:oneui:2.4.0'
    implementation 'com.mikhaellopez:circularimageview:4.3.0'
    implementation 'com.github.bumptech.glide:glide:4.13.0'
  1. Sync Gradle
  2. Add OPT View into .xml layout
    <com.chaos.view.PinView
        android:id="@+id/pinView"
        style="@style/PinWidget.PinView"
        android:layout_width="wrap_content"
        android:layout_height="wrap_content"
        android:cursorVisible="true"
        android:hint="******"
        android:inputType="text"
        android:padding="8dp"
        android:textColor="@color/primary_color"
        android:textSize="18sp"
        android:textStyle="bold"
        app:cursorColor="@color/sesl_primary_text"
        app:cursorWidth="2dp"
        app:hideLineWhenFilled="false"
        app:itemCount="6"
        app:itemHeight="48dp"
        app:itemRadius="4dp"
        app:itemSpacing="0dp"
        app:itemWidth="48dp"
        app:lineColor="@color/sesl_primary_text"
        app:lineWidth="2dp"
        app:viewType="0" />
  1. Debug Build
What did I do:
  • Clear Project

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