cesards / SuperImageView

Crop and Rounded Corners added to an ImageView.
MIT License
654 stars 111 forks source link

Layout: Error in crop-attribute #29

Open ffischer1984 opened 5 years ago

ffischer1984 commented 5 years ago

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\processedres\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