Skip to content

Layout: Error in crop-attribute #29

Description

@ffischer1984

XML-Code:
<com.codeforvictory.android.superimageview.SuperImageView xmlns:custom="http://schemas.android.com/apk/res-auto"
android:id="@+id/result"
android:layout_gravity="bottom"
android:layout_marginEnd="383dp"
android:layout_marginRight="383dp"
android:paddingBottom="10dp" custom:crop="topLeft|centerLeft|bottomLeft|topRight|centerRight|bottomRight|centerTop|centerBottom"
custom:layout_constraintEnd_toEndOf="parent" />

Stacktrace:

Android resource linking failed
Output: C:\projects**\app\src\main\res\layout\review_image.xml:28: error: 'topLeft|centerLeft|bottomLeft|topRight|centerRight|bottomRight|centerTop|centerBottom' is incompatible with attribute crop (attr) enum [bottomLeft=2, bottomRight=5, centerBottom=7, centerLeft=1, centerRight=4, centerTop=6, topLeft=0, topRight=3] [weak].
error: failed linking file resources.

Command: C:\Users*.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\80d2698f32793bc1c91ad5fc69b2dc3a\aapt2-3.2.1-4818971-windows\aapt2.exe link -I
C:\Android\sdk\platforms\android-28\android.jar
--manifest
C:\projects*
\app\build\intermediates\split-apk\debug\resources\AndroidManifest.xml
-o
C:\projects*\app\build\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_
-R
@C:\projects*
\app\build\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt
--auto-add-overlay
--java
C:\projects*\app\build\generated\not_namespaced_r_class_sources\debug\processDebugResources\r
--custom-package
de.geocv..
-0
apk
--preferred-density
xhdpi
--output-text-symbols
C:\projects*
\app\build\intermediates\symbols\debug\R.txt
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-windows Daemon #0

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