Apparence-io / CamerAwesome

📸 Embedding a camera experience within your own app shouldn't be that hard. A flutter plugin to integrate awesome Android / iOS camera experience.
https://ApparenceKit.dev
MIT License
920 stars 208 forks source link

Kotlin version conflict #236

Closed Swapnil571 closed 1 year ago

Swapnil571 commented 1 year ago

I found this package last week, and I used it in my project. It was working fine. But, in this week it stopped working. I got following errors for it. Launching lib\main.dart on sdk gphone64 x86 64 in debug mode... e: C:\Users\Chmain\AppData\Roaming\Pub\Cache\hosted\pub.dev\camerawesome-1.2.0\android\src\main\kotlin\com\apparence\camerawesome\cameraX\CameraPermissions.kt: (175, 22): Not enough information to infer type variable T e: C:\Users\Chmain\AppData\Roaming\Pub\Cache\hosted\pub.dev\camerawesome-1.2.0\android\src\main\kotlin\com\apparence\camerawesome\cameraX\CameraPermissions.kt: (175, 41): Cannot infer a type for this parameter. Please specify it explicitly.

FAILURE: Build failed with an exception.

BUILD FAILED in 40s Exception: Gradle task assembleDebug failed with exit code 1 Exited (sigterm)

apalala-dev commented 1 year ago

I think it's because we updated kotlin and gradle version. It might be improved in a future PR, but in the meantime you can resolve your issue by updating them as well. See #231

Upgrade in build.gradle kotlin version to ext.kotlin_version = '1.7.10' And classpath 'com.android.tools.build:gradle:7.2.0'

apalala-dev commented 1 year ago

We've released a new version (1.3) which should be less problematic with kotlin version conflicts.

Feel free to open a new issue it there is still a problem.