You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
e: path/to/photo_manager/android/src/main/kotlin/com/fluttercandies/photo_manager/core/utils/CommonExt.kt: (10, 1): Conflictingoverloads: public fun String.checkDirs(): Unit defined in com.fluttercandies.photo_manager.core.utils in file CommonExt.kt, public fun String.checkDirs(): Unit defined in com.fluttercandies.photo_manager.core.utils in file CommonExt.kt
e: path/to/photo_manager/android/src/main/kotlin/com/fluttercandies/photo_manager/core/utils/CommonExt.kt: (17, 1): Conflictingoverloads: public fun InputStream.getOrientationDegrees(): Int defined in com.fluttercandies.photo_manager.core.utils in file CommonExt.kt, public fun InputStream.getOrientationDegrees(): Int defined in com.fluttercandies.photo_manager.core.utils in file CommonExt.kt
e: path/to/photo_manager/android/src/main/kotlin/com/fluttercandies/photo_manager/core/utils/IDBUtils.kt: (22, 11): Redeclaration: IDBUtilse: path/to/photo_manager/android/src/main/kotlin/com/fluttercandies/photo_manager/permission/PermissionsUtils.kt: (24, 7): Redeclaration: PermissionsUtilse: path/to/photo_manager/android/src/main/kotlin/com/fluttercandies/photo_manager/util/LogUtils.kt: (8, 8): Redeclaration: LogUtilsFAILURE: Build failed with an exception.
Unresolved reference
Two steps to solve this issue:
Raise the compileSdkVersion and targetSdkVersion to 33 in the android/app/build.gradle.
Check if android/app/build.gradle contains apply plugin: 'kotlin-android'. Add this line if it's not contained, and the file should be like this:
e: path/to/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt: (116, 36): Unresolvedreference: R
e: path/to/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt: (119, 36): Unresolvedreference: createTrashRequest
e: path/to/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerPlugin.kt: (341, 84): Unresolvedreference: R
e: path/to/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/utils/Android30DbUtils.kt: (34, 34): Unresolvedreference: R
e: <path>/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/utils/IDBUtils.kt: (27, 67): Unresolvedreference: R
FAILURE: Build failed with an exception.
XXX was compiled with an incompatible version of Kotlin
Two steps to solve this issue:
Raise the ext.kotlin_version in android/build.gradle to 1.7.0 or a newer version.
Raise the gradle version in android/gradle/wrapper/gradle-wrapper.properties to 7.3.3 or a newer version.
```
e: path/to/photo_manager-x.y.z/android/src/main/kotlin/com/fluttercandies/photo_manager/core/PhotoManagerDeleteManager.kt: (38, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.5.1, expected version is 1.1.16.
The class is loaded from /path/to/jetified-kotlin-stdlib-1.5.21.jar!/kotlin/Unit.class
```
Unresolved reference: lowercase
Raise the ext.kotlin_version in android/build.gradle to 1.6.10 or a newer version.
The text was updated successfully, but these errors were encountered:
Redeclaration: *
Run
flutter clean
.Unresolved reference
Two steps to solve this issue:
compileSdkVersion
andtargetSdkVersion
to33
in theandroid/app/build.gradle
.android/app/build.gradle
containsapply plugin: 'kotlin-android'
. Add this line if it's not contained, and the file should be like this:XXX was compiled with an incompatible version of Kotlin
Two steps to solve this issue:
ext.kotlin_version
inandroid/build.gradle
to1.7.0
or a newer version.android/gradle/wrapper/gradle-wrapper.properties
to7.3.3
or a newer version.Unresolved reference: lowercase
Raise the
ext.kotlin_version
inandroid/build.gradle
to1.6.10
or a newer version.The text was updated successfully, but these errors were encountered: