Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Layout: Error in crop-attribute #29

Open
ffischer1984 opened this issue Nov 12, 2018 · 0 comments
Open

Layout: Error in crop-attribute #29

ffischer1984 opened this issue Nov 12, 2018 · 0 comments

Comments

@ffischer1984
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant