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

Many build errors after upgrade #100

Closed
tolew1 opened this issue Jun 18, 2023 · 2 comments
Closed

Many build errors after upgrade #100

tolew1 opened this issue Jun 18, 2023 · 2 comments

Comments

@tolew1
Copy link

tolew1 commented Jun 18, 2023

Lassi 1.2.0
Gradle 6.8.3

I had an older version of Lassi and it worked fine. This last update to update to viewBinding literally broke everything. There are significant changes to more than just that.

First error I can't solve is.

> Task :app:mergeDebugResources FAILED AGPBI: {"kind":"error","text":"Can't determine type for tag '<macro name=\"m3_comp_assist_chip_container_shape\">?attr/shapeAppearanceCornerSmall</macro>'","sources":[{"file":"C:\\Users\\me\\.gradle\\caches\\transforms-3\\5db1a293774c08babef17f35eea56c60\\transformed\\material-1.8.0\\res\\values\\values.xml"}],"tool":"Resource and asset merger"}

2nd issue is when I change JVM to 11 because I can't target JVM 17 in my project I get issues with Cameraview
Here is one example. Tons of cameraview errors.

> Task :lassi:compileDebugJavaWithJavac E:\Projects\Repos\development\lassi\src\main\java\com\lassi\presentation\cameraview\audio\Facing.java:4: error: package android.content does not exist import android.content.Context;

Anyway to not use Cameraview? I don't need a camera, I just wanted to use mediapicker only.

@tolew1
Copy link
Author

tolew1 commented Jun 18, 2023

If I try to use 1.1.0. I still can't build it.

> Task :app:processDebugResources AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"C:\\Users\\me\\.gradle\\caches\\transforms-3\\be74ed04c120979375b7f3705985240a\\transformed\\jetified-Lassi-1.1.0\\res\\layout\\activity_camera.xml","position":{"startLine":25}}],"original":"ERROR:C:\\Users\\tole\\.gradle\\caches\\transforms-3\\be74ed04c120979375b7f3705985240a\\transformed\\jetified-Lassi-1.1.0\\res\\layout\\activity_camera.xml:26: AAPT: error: 'focusWithMarker' is incompatible with attribute cameraGestureTap (attr) enum [none=0, autoFocus=1, takePicture=2, takePictureSnapshot=3] [weak].\n ","tool":"AAPT"}

@tolew1
Copy link
Author

tolew1 commented Jun 19, 2023

Finally was able to get it working. OMG. You need to make sure your AGP and Gradle are updated enough, 7.4.2 and 7.3.1 respectively. Match the kotlin version with the module and lower the JVM version in Lassi build Gradle to match your project. I think there might have been other things but Android doesn't make it easy. sigh..

@tolew1 tolew1 closed this as completed Jun 19, 2023
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