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
919 stars 207 forks source link

1.2.0 build failed in Android #231

Closed Origogi closed 1 year ago

Origogi commented 1 year ago

Steps to Reproduce

  1. add dependency 1.2.0
  2. build android

Expected results

build success

Actual results

Build Failed

e: /Users/gimjeongtae/.pub-cache/hosted/pub.dartlang.org/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: /Users/gimjeongtae/.pub-cache/hosted/pub.dartlang.org/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.

but 1.1.0 is working well~

apalala-dev commented 1 year ago

Hi, you need to upgrade the kotlin version and gradle version as mentioned on the issue #221.

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

migalv-fu commented 1 year ago

Same issue on my end. I'll try what you mentioned

migalv-fu commented 1 year ago

It fixed my problem thanks!

Origogi commented 1 year ago

@apalala-dev it work very well thx 👍🏻