Kotlin unresolved reference. Flutter version compability - android

I've cloned some working android code from github. Trying to start on my PC with the intellij idea and get this errors:
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:/Users/Novikov/.gradle/caches/transforms-3/bf6fd9443ed4baf2bf2eb0050e42a90d/transformed/jetified-kotlin-stdlib-common-1.8.0.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (14, 26): Unresolved reference: thread
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (20, 10): Class 'kotlin.jvm.JvmStatic' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/jvm/JvmStatic.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (24, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (25, 21): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (31, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (38, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (52, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (56, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (57, 35): Unresolved reference: thread
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (58, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (60, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (61, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (64, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (65, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (65, 40): Unresolved reference: javaClass
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (69, 43): Unresolved reference: thread
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (70, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (73, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (74, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (77, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (78, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (78, 40): Unresolved reference: javaClass
e: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\advertising_id-2.4.0\android\src\main\kotlin\com\os\operando\advertisingid\AdvertisingIdPlugin.kt: (82, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.8.0, expected version is 1.6.0.
The class is loaded from C:/Users/Novikov/.gradle/caches/transforms-3/1bb8b6302988e4bf46c3c7e28882f22d/transformed/jetified-kotlin-stdlib-1.8.0.jar!/kotlin/Unit.class
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':advertising_id:compileDebugKotlin'.
> Compilation error. See log for more details
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 5s
finalizedBy
┌─ Flutter Fix ────────────────────────────────────────────────────────────────────────────────┐
│ [!] Your project requires a newer version of the Kotlin Gradle plugin. │
│ Find the latest version on https://kotlinlang.org/docs/gradle.html#plugin-and-versions, then │
│ update C:\Users\Novikov\Desktop\itdt\ui\android\build.gradle: │
│ ext.kotlin_version = '<latest-version>' │
└──────────────────────────────────────────────────────────────────────────────────────────────┘
Exception: Gradle task assembleDevDebug failed with exit code 1
I know for sure this is a working code, so i cannot change it. I suppose i have problems with my configuration. Does anyone know how to fix this?
I have already tried:
Invaliade intellij idea cache.
Downgrade flutter version to one using in this module.
Reinstall flutter and dart plugins.
Also if i complitely clear
C:/[USER]/.gradle/caches/transforms-3/
version problem dissappears, but Unresolved reference still stands.

Related

Android verifyReleaseResources fails, resource not found

verifyReleaseResources keeps failing for my android assembleRelease build.
A description of my react-native build
System:
OS: macOS 12.6
CPU: (10) x64 Apple M1 Max
Memory: 22.59 MB / 32.00 GB
Shell: 5.8.1 - /bin/zsh
Binaries:
Node: 14.19.1 - ~/.nvm/versions/node/v14.19.1/bin/node
Yarn: 1.22.18 - ~/github/snackpass/snackpass-client/node_modules/.bin/yarn
npm: 8.19.2 - /opt/homebrew/bin/npm
Watchman: 2022.10.31.00 - /opt/homebrew/bin/watchman
Managers:
CocoaPods: 1.11.3 - /opt/homebrew/bin/pod
SDKs:
iOS SDK:
Platforms: DriverKit 21.4, iOS 15.5, macOS 12.3, tvOS 15.4, watchOS 8.5
Android SDK: Not Found
IDEs:
Android Studio: Dolphin 2021.3.1 Patch 1 Dolphin 2021.3.1 Patch 1
Xcode: 13.4.1/13F100 - /usr/bin/xcodebuild
Languages:
Java: 11.0.11 - /Users/alitamoore/.jenv/shims/javac
npmPackages:
#react-native-community/cli: Not Found
react: 17.0.1 => 17.0.1
react-native: ^0.64.4 => 0.64.4
react-native-macos: Not Found
npmGlobalPackages:
*react-native*: Not Found
Here’re some sample errors I got
(Warning/Error) Argfile not found
Argfile not found: /Users/alitamoore/Library/Application Support/kotlin/daemon/promotedai_react-native-metrics_release
(error) Incompatible kotlin version
/Users/alitamoore/.gradle/caches/transforms-3/39d9fb5957939f0b72af860a8de1b4e0/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
/Users/alitamoore/.gradle/caches/transforms-3/556bb75edc66f947ffbea3dd348ad797/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
/Users/alitamoore/.gradle/caches/transforms-3/572b2229271f904a5c21007cf91f4994/transformed/jetified-react-native-0.71.0-rc.0-release-api.jar!/META-INF/ReactAndroid_release.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
/Users/alitamoore/.gradle/caches/transforms-3/687b7f7119d3db63f03c30ceb978b8e7/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
/Users/alitamoore/.gradle/caches/transforms-3/b89184fd2243c0ba9c21f04aac02ee1a/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.1.15.
If I force the kotlin version the dependency to 1.6.0 then I get another error
(Error) failed linking file resources
Execution failed for task ':promotedai_react-native-metrics:verifyReleaseResources'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> 1 exception was raised by workers:
com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
AAPT: /Users/alitamoore/github/snackpass/snackpass-client/node_modules/#promotedai/react-native-metrics/android/build/intermediates/res/merged/release/layout/autofill_inline_suggestion.xml:18: error: resource attr/autofillInlineSuggestionChip (aka ai.promoted:attr/autofillInlineSuggestionChip) not found.
/Users/alitamoore/github/snackpass/snackpass-client/node_modules/#promotedai/react-native-metrics/android/build/intermediates/res/merged/release/layout/autofill_inline_suggestion.xml:25: error: resource attr/autofillInlineSuggestionStartIconStyle (aka ai.promoted:attr/autofillInlineSuggestionStartIconStyle) not found.
/Users/alitamoore/github/snackpass/snackpass-client/node_modules/#promotedai/react-native-metrics/android/build/intermediates/res/merged/release/layout/autofill_inline_suggestion.xml:32: error: resource attr/autofillInlineSuggestionTitle (aka ai.promoted:attr/autofillInlineSuggestionTitle) not found.
/Users/alitamoore/github/snackpass/snackpass-client/node_modules/#promotedai/react-native-metrics/android/build/intermediates/res/merged/release/layout/autofill_inline_suggestion.xml:41: error: resource attr/autofillInlineSuggestionSubtitle (aka ai.promoted:attr/autofillInlineSuggestionSubtitle) not found.
/Users/alitamoore/github/snackpass/snackpass-client/node_modules/#promotedai/react-native-metrics/android/build/intermediates/res/merged/release/layout/autofill_inline_suggestion.xml:50: error: resource attr/autofillInlineSuggestionEndIconStyle (aka ai.promoted:attr/autofillInlineSuggestionEndIconStyle) not found.
error: failed linking file resources.
This error is also unpredictable, sometimes after clearing cache it passes the build.
I don’t know why this happens, exactly. But I do know that removing the offending linked packages (note that links only apply RN < 0.69.0) from android/settings.gradle fixes it.
e.g. remove these lines (in the example given)
include ':#promotedai_react-native-metrics'
project(':#promotedai_react-native-metrics').projectDir = new File(rootProject.projectDir, '../node_modules/#promotedai/react-native-metrics/android')
While I was debugging this, I also found some useful solutions to the errors mentioned. They may be useful:
Argfile not found
Try
cd android
./gradlew clean
Incompatible Kotlin Version
If you notice in the above errors it says The binary version of its metadata is 1.6.0, expected version is 1.1.15 but 1.1.15 is not a valid version of Kotlin. So if you override that with a valid version it’ll fix the issue. Try applying it project wide first (android/build.gradle)
buildScript {
ext {
kotlinVersion = “1.6.0”
}
}
If that has issues, then you can override it directly in the dependency and then save those changes with patch-package
failed linking file resources
In some cases you may see error: resource android:attr/lStar not found. In that case, see Saurabh’s suggestion or this video I found useful.

Unable to use ReactNative Navigation (Stack) on Android project

I am building a mobile application for both Android and IOS platforms using ReactNative. I am using React Navigation, https://reactnavigation.org/docs/getting-started for navigating between screens. I installed the libraries running the following commands.
npm install #react-navigation/native
npm install react-native-screens react-native-safe-area-context
npm install #react-navigation/native-stack
After I installed the packages, I run the following command to run the app on the Android device/ Emulator.
When I run the command, I get the following errors.
info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag.
(node:5344) Warning: Accessing non-existent property 'padLevels' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
Jetifier found 1030 file(s) to forward-jetify. Using 8 workers...
info Starting JS server...
info Installing the app...
> Task :react-native-safe-area-context:compileDebugKotlin
w: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-safe-area-context/android/src/main/java/com/th3rdwave/safeareacontext/SafeAreaView.kt: (50, 23): 'getter for uiImplementation: UIImplementation!' is deprecated. Deprecated in Java
> Task :react-native-screens:compileDebugKotlin FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
50 actionable tasks: 35 executed, 15 up-to-date
e: Incompatible classes were found in dependencies. Remove them from the classpath or use '-Xskip-metadata-version-check' to suppress errors
e: /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/META-INF/kotlin-stdlib.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
e: /Users/waihein/.gradle/caches/transforms-3/6c9a7a42c61ba7a5c65cc3e7d4f8eb18/transformed/jetified-react-native-0.69.0-debug-api.jar!/META-INF/ReactAndroid_debug.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
e: /Users/waihein/.gradle/caches/transforms-3/93284af1ff4aef981299aa5f71aeea44/transformed/jetified-kotlin-stdlib-jdk8-1.6.10.jar!/META-INF/kotlin-stdlib-jdk8.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
e: /Users/waihein/.gradle/caches/transforms-3/c31e8d21c519bec0fb80f130fce46632/transformed/jetified-kotlin-stdlib-common-1.6.10.jar!/META-INF/kotlin-stdlib-common.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
e: /Users/waihein/.gradle/caches/transforms-3/d513ea33b864f72616712d89ad44f7df/transformed/jetified-kotlin-stdlib-jdk7-1.6.10.jar!/META-INF/kotlin-stdlib-jdk7.kotlin_module: Module was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (22, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (28, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (33, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (38, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (42, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (46, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (48, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (53, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (54, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (58, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (59, 45): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (60, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (63, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (65, 32): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/CustomSearchView.kt: (69, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/FragmentBackPressOverrider.kt: (15, 57): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/FragmentBackPressOverrider.kt: (19, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/FragmentBackPressOverrider.kt: (25, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/FragmentBackPressOverrider.kt: (26, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (9, 68): Unresolved reference: HashMap
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (22, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (23, 18): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (31, 23): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (32, 32): Unresolved reference: mViewToLifecycleMap[view]
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (32, 32): No set method providing array access
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (42, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/LifecycleHelper.kt: (47, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/RNScreensPackage.kt: (18, 16): Unresolved reference: emptyList
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/RNScreensPackage.kt: (22, 9): Unresolved reference: listOf
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (54, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (71, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (72, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (74, 17): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (81, 22): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (85, 26): Not enough information to infer type variable T
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (85, 65): Unresolved reference: java
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (108, 9): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (113, 15): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (120, 21): Unresolved reference: until
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (122, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (141, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (142, 20): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (147, 18): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (150, 28): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (151, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (162, 19): Unresolved reference: let
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (162, 44): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (162, 65): Unresolved reference: it
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (168, 14): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (169, 37): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (176, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (178, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (179, 23): Unresolved reference: let
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (179, 48): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (179, 63): Unresolved reference: it
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (179, 84): Unresolved reference: it
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (186, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (188, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (189, 23): Unresolved reference: let
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (189, 48): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (189, 64): Unresolved reference: it
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (196, 36): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
The class is loaded from /Users/waihein/.gradle/caches/transforms-3/347daadc4577e97ea182fd1bbd88604c/transformed/jetified-kotlin-stdlib-1.6.10.jar!/kotlin/Unit.class
e: /Users/waihein/Desktop/Code/RNRestaurantAutomatorManager/node_modules/react-native-screens/android/src/main/java/com/swmansion/rnscreens/Screen.kt: (198, 13): Class 'kotlin.Unit' was compiled with an incompatible version of Kotlin. The binary version of its metadata is 1.6.0, expected version is 1.4.0.
How can I fix it?
For me, this problem always appears after installing react-native-screens, the solution that usually works for me is:
Go to project-> android -> build.gradle (note: not app/build.gradle)
As you see in the screenshot, add this line (note: The version is whatever it shows in error, for you it is 1.6.0 so add the same line)
As you see in the screenshot, add this line aswell
Hopefully this works!
I am not sure this is gonna work in your case but you can give it a shot. Go to your node_modules/react-native-photo-editor/android/build.gradle.
Remove SNAPSHOT from -> implementation 'com.github.prscX:photo-editor-android:master-SNAPSHOT'. And then run your app.
Reference
I got it to work by deleting the .gradle folder on my Mac and then run the build again

ionic 4 android, android error: cannot find symbol

so this was building with no problem and then I was having problems with building ios so I removed the android platform and added it again. All the plugins and adding of the platform are being added correctly but when running the command $ ionic cordova build android I get a LOT of errors about not being able to find the symbol.
> Task :app:compileDebugJavaWithJavac FAILED
24 actionable tasks: 5 executed, 19 up-to-date
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:35: error: cannot find symbol
import android.support.v4.app.NotificationManagerCompat;
^
symbol: class NotificationManagerCompat
location: package android.support.v4.app
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic.java:57: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_External_Storage.java:28: error: cannot find symbol
import android.support.v4.os.EnvironmentCompat;
^
symbol: class EnvironmentCompat
location: package android.support.v4.os
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/FileProvider.java:4: error: package android.support.v4.content does not exist
public class FileProvider extends android.support.v4.content.FileProvider {
^
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/com/ionicframework/cordova/webview/IonicWebViewEngine.java:11: error: package android.support.annotation does not exist
import android.support.annotation.RequiresApi;
^
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/com/ionicframework/cordova/webview/IonicWebViewEngine.java:121: error: cannot find symbol
#RequiresApi(Build.VERSION_CODES.LOLLIPOP)
^
symbol: class RequiresApi
location: class IonicWebViewEngine.ServerClient
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:123: error: cannot find symbol
NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(this.cordova.getActivity().getApplicationContext());
^
symbol: class NotificationManagerCompat
location: class Diagnostic_Notifications
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_Notifications.java:123: error: cannot find symbol
NotificationManagerCompat notificationManagerCompat = NotificationManagerCompat.from(this.cordova.getActivity().getApplicationContext());
^
symbol: variable NotificationManagerCompat
location: class Diagnostic_Notifications
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic.java:639: error: cannot find symbol
java.lang.reflect.Method method = ActivityCompat.class.getMethod("shouldShowRequestPermissionRationale", Activity.class, java.lang.String.class);
^
symbol: class ActivityCompat
location: class Diagnostic
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/cordova/plugins/Diagnostic_External_Storage.java:216: error: cannot find symbol
addPath = Environment.MEDIA_MOUNTED.equals(EnvironmentCompat.getStorageState(file));
^
symbol: variable EnvironmentCompat
location: class Diagnostic_External_Storage
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/SocialSharing.java:169: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
/Users/c.francia/Desktop/application/app/platforms/android/app/src/main/java/nl/xservices/plugins/SocialSharing.java:285: error: cannot find symbol
fileUri = FileProvider.getUriForFile(webView.getContext(), cordova.getActivity().getPackageName()+".sharing.provider", new File(fileUri.getPath()));
^
symbol: method getUriForFile(Context,String,File)
location: class FileProvider
I have about 25 of those class errors. Never seen this error before and not a java programmer/used the android studio much.
I have found this SO post that looks like it might help? I just don't know how I go about updating the compiler tools through ionic or through the android studio?
I have also updated my SDK tools
Current version: Android Studio 3.5
Build number: AI-191.8026.42.35.5791312
Android SKD Tools: 26.1.1
Android Platform Version: API 29: Android 10.0 (Q) revision 3
$ java --version
$ java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
Try adding the following code in config.xml under android platform
<preference name="ANDROID_SUPPORT_V4_VERSION" default="27.+"/>
<framework src="com.android.support:supportv4:$ANDROID_SUPPORT_V4_VERSION"/>

Gstreamer Android Development

I'm trying to compile the examples included in GStreamer. I'm following this tutorial
but I can't compile any of the included examples because ant debug give me this error:
-compile:
[javac] Compiling 4 source files to F:\Android\gstreamer\share\gst-sdk\tutorials\android-tutorial-1\bin\classes
[javac] F:\Android\gstreamer\share\gst-sdk\tutorials\android-tutorial-1\src\com\gst_sdk_tutorials\tutorial_1\Tutorial1.java:8: package com.gstreamer does not exist
[javac] import com.gstreamer.GStreamer;
[javac] ^
[javac] F:\Android\gstreamer\share\gst-sdk\tutorials\android-tutorial-1\src\com\gst_sdk_tutorials\tutorial_1\Tutorial1.java:20: cannot find symbol
[javac] symbol : variable GStreamer
[javac] location: class com.gst_sdk_tutorials.tutorial_1.Tutorial1
[javac] GStreamer.init(this);
[javac] ^
[javac] 2 errors
BUILD FAILED
F:\Android\android-sdk\tools\ant\build.xml:716: The following error occurred while executing this line:
F:\Android\android-sdk\tools\ant\build.xml:730: Compile failed; see the compiler error output for details.
Total time: 1 second
I have installed the latest version of android ndk and android sdk, I'm using API 19 and gstreamer 1.7.1 (gstreamer-1.0-android-arm-1.7.1.tar.bz2) downloaded from here; I'm using CygWin64 as required in the tutorial and ANT from Apache. I have also declared all the required local variables.
I can run the first command: android update project -p . -s --target 19
and also the second: ndk-build
If the compiling process is not possible with the command line, where can I get a working version of Eclipse with adt plugins?
I solved: since I'm using Gstreamer 1.7.1 the import line import com.gstreamer.GStreamer; must be changed into import org.freedesktop.gstreamer.GStreamer;.

cordova crosswalk project migration -- error

I am trying to migrate my cordova project to crosswalk.
I am using [following download] (https://download.01.org/crosswalk/releases/crosswalk/android/stable/10.39.235.15/arm/crosswalk-cordova-10.39.235.15-arm.zip) of crosswalk.
My system is having android 4.4 & 4.3 CLI SDK installed.
I want to compile my android app for Android 4.3 (API 18).
"cordova -v" command run output :
4.2.0
"cordova platform version android" command run output :
Installed platforms: android 3.6.4
Available platforms: amazon-fireos, blackberry10, browser, firefoxos, windows, windows8, wp8
I am following following link to Migrate cordova project to crosswalk.
VERSION file contains string :
3.6.3
I am getting following error in "ant dbg" stage. Please suggest how to resolve it ?
"ant dbg" command run output :
debug:
-code-gen:
[mergemanifest] Found Deleted Target File
[mergemanifest] Merging AndroidManifest files into one.
[mergemanifest] Manifest merger disabled. Using project manifest only.
[echo] Handling aidl files...
[aidl] No AIDL files to compile.
[echo] ----------
[echo] Handling RenderScript files...
[echo] ----------
[echo] Handling Resources...
[aapt] Found Deleted Target File
[aapt] Generating resource IDs...
[echo] ----------
[echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.
-pre-compile:
-compile:
[javac] Compiling 43 source files to D:\HTML_genny\Git\cordova_projects\2_cr
osswalk\2\test\platforms\android\CordovaLib\bin\classes
[javac] warning: [options] source value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] target value 1.5 is obsolete and will be removed
in a future release
[javac] warning: [options] To suppress warnings about obsolete options, use
-Xlint:-options.
[javac] D:\HTML_genny\Git\cordova_projects\2_crosswalk\2\test\platforms\andr
oid\CordovaLib\src\com\squareup\okhttp\internal\http\HttpsURLConnectionImpl.java
:347: error: method does not override or implement a method from a supertype
[javac] #Override public void setFixedLengthStreamingMode(long contentLeng
th) {
[javac] ^
[javac] D:\HTML_genny\Git\cordova_projects\2_crosswalk\2\test\platforms\andr
oid\CordovaLib\src\org\apache\cordova\CordovaActivity.java:302: error: cannot fi
nd symbol
[javac] if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
[javac] ^
[javac] symbol: variable KITKAT
[javac] location: class VERSION_CODES
[javac] D:\HTML_genny\Git\cordova_projects\2_crosswalk\2\test\platforms\andr
oid\CordovaLib\src\org\apache\cordova\CordovaActivity.java:309: error: cannot fi
nd symbol
[javac] | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY;
[javac] ^
[javac] symbol: variable SYSTEM_UI_FLAG_IMMERSIVE_STICKY
[javac] location: class View
[javac] D:\HTML_genny\Git\cordova_projects\2_crosswalk\2\test\platforms\andr
oid\CordovaLib\src\org\apache\cordova\IceCreamCordovaWebViewClient.java:86: erro
r: cannot find symbol
[javac] return android.os.Build.VERSION.SDK_INT >= android.os.Build.
VERSION_CODES.KITKAT && "content".equals(uri.getScheme());
[javac]
^
[javac] symbol: variable KITKAT
[javac] location: class VERSION_CODES
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] 4 errors
[javac] 3 warnings
BUILD FAILED
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:720: The followin
g error occurred while executing this line:
C:\Program Files (x86)\Android\android-sdk\tools\ant\build.xml:734: Compile fail
ed; see the compiler error output for details.
Total time: 4 seconds
I've only been using crosswalk 9+cordova 3.5, but I think you should try to use cordova android 3.6.3 instead of 3.6.4 :
cordova platform remove android
cordova platform add android#3.6.3
And then you can follow again the migration guide and replace the cordova-lib with crosswalk-cordova.
And make sure to specify --target "android-19" when building xwalk_core_library.
Ok, I've made a little search about the error message you have.
The error says method setFixedLengthStreamingMode(long contentLength) is not found in HttpsURLConnectionImpl.java.
It seems setFixedLengthStreamingMode is new from java 7, so my guess is you are using an older version of java.
To be sure, run java -version in a terminal.If the output displays Java version 1.6.x, then your problem should be solved after upgrading to java 7 or 8.

Categories

Resources