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
> Task :appmetrica_react-native-analytics:compileDebugJavaWithJavac FAILED
/home/develop/Desktop/projects/modile-init/open/mobile/node_modules/@appmetrica/react-native-analytics/android/src/main/java/io/appmetrica/analytics/reactnative/ExternalAttributionSerializer.java:19: error: switch expressions are not supported in -source 8
return switch (sourceString) {
^
(use -source 14 or higher to enable switch expressions)
/home/develop/Desktop/projects/modile-init/open/mobile/node_modules/@appmetrica/react-native-analytics/android/src/main/java/io/appmetrica/analytics/reactnative/ExternalAttributionSerializer.java:20: error: switch rules are not supported in -source 8
case "AppsFlyer" -> ModulesFacade.EXTERNAL_ATTRIBUTION_APPSFLYER;
^
(use -source 14 or higher to enable switch rules)
2 errors
FAILURE: Build failed with an exception.
Possible solution
Perhaps the best way to solve this error is to stop using the switch expression and leave java version 1.8.
The text was updated successfully, but these errors were encountered:
Description
The
switch expression
is used in a project that is available with "14" versions of java, but in "build.gradle" version "1.8" is specified.Error message:
Possible solution
Perhaps the best way to solve this error is to stop using the switch expression and leave java version
1.8
.The text was updated successfully, but these errors were encountered: