[SDK 46] Task :expo-constants:compileDebugKotlin FAILED

See original GitHub issue

Summary

upgrading expo from 45 to 46 giving error. Tried to reinstall dependencies or remove node-modules and npx jetify still no luck

> Task :react-native-google-signin_google-signin:generateDebugRFile
Execution optimizations have been disabled for task ':react-native-google-signin_google-signin:generateDebugRFile' to ensure correctness due to the following re
asons:
  - Gradle detected a problem with the following location: 'D:\Projects\WebstormProjects\react-native\...\node_modules\@react-native-google-signin\googl
e-signin\android\build\intermediates\local_only_symbol_list\debug\R-def.txt'. Reason: Task ':react-native-google-signin_google-signin:generateDebugRFile' uses t
his output of task ':react-native-google-signin-google-signin:parseDebugLocalResources' without declaring an explicit or implicit dependency. This can lead to i
ncorrect results being produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.htm
l#implicit_dependency for more details about this problem.
  - Gradle detected a problem with the following location: 'D:\Projects\WebstormProjects\react-native\...\node_modules\@react-native-google-signin\googl
e-signin\android\build\intermediates\packaged_manifests\debug'. Reason: Task ':react-native-google-signin_google-signin:generateDebugRFile' uses this output of 
task ':react-native-google-signin-google-signin:processDebugManifest' without declaring an explicit or implicit dependency. This can lead to incorrect results b
eing produced, depending on what order the tasks are executed. Please refer to https://docs.gradle.org/7.3.3/userguide/validation_problems.html#implicit_depende
ncy for more details about this problem.

> Task :expo-constants:compileDebugKotlin FAILED
e: D:\Projects\WebstormProjects\react-native\...\node_modules\expo-constants\android\src\main\java\expo\modules\constants\ConstantsService.kt: (8, 36): 
Unresolved reference: EmulatorUtilities
e: D:\Projects\WebstormProjects\react-native\...\node_modules\expo-constants\android\src\main\java\expo\modules\constants\ConstantsService.kt: (80, 33):
 Unresolved reference: EmulatorUtilities
e: D:\Projects\WebstormProjects\react-native\...\node_modules\expo-constants\android\src\main\java\expo\modules\constants\ConstantsService.kt: (126, 15)
: Unresolved reference: EmulatorUtilities

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':expo-constants: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

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

Execution optimizations have been disabled for 8 invalid unit(s) of work during this build to ensure correctness.
Please consult deprecation warnings for more details.

BUILD FAILED in 58s

What platform(s) does this occur on?

Android

Environment

expo-env-info 1.0.5 environment info:
    System:
      OS: Windows 10 10.0.19043
    Binaries:
      Node: 16.15.0 - C:\Program Files\nodejs\node.EXE
      Yarn: 3.1.1 - ~\AppData\Roaming\npm\yarn.CMD
      npm: 8.5.1 - ~\AppData\Roaming\npm\npm.CMD
    SDKs:
      Android SDK:
        API Levels: 27, 28, 29, 30, 31, 32, 33
        Build Tools: 28.0.3, 29.0.2, 29.0.3, 30.0.2, 30.0.3, 31.0.0, 32.0.0, 33.0.0
        System Images: android-28 | Google APIs Intel x86 Atom_64, android-29 | Google Play Intel x86 Atom, android-31 | Google Play Intel x86 Atom_64, android-33 | Google Play Intel x86 Atom_64
        Android NDK: 22.1.7171670
    IDEs:
      Android Studio: AI-212.5712.43.2112.8815526
    npmPackages:
      expo: ~46.0.16 => 46.0.16
      react: 18.0.0 => 18.0.0
      react-dom: 18.0.0 => 18.0.0
      react-native: 0.69.7 => 0.69.7
      react-native-web: ~0.18.7 => 0.18.10
    Expo Workflow: bare

Minimal reproducible example

  • yarn expo upgrade
  • yarn expo prebuild --clean

Issue Analytics

  • State:closed
  • Created 10 months ago
  • Comments:9

github_iconTop GitHub Comments

7reactions
nwilmet-vivliocommented, Nov 9, 2022

I had the same issue using RN 0.69.7 and Expo 46.0.0. For me putting expo-constants at version “13.2.4” in dependencies of package.json is fixing the issue

2reactions
AxanIqbalcommented, Nov 9, 2022

I had the same issue using RN 0.69.7 and Expo 46.0.0. For me putting expo-constants at version “13.2.4” in dependencies of package.json is fixing the issue

Thanks for that it did clear the issue but here comes the another issues of android can’t launch with mainactivity back to 45 cheers

Read more comments on GitHub >

github_iconTop Results From Across the Web

[expo] Build broken with SDK 46 · Issue #392 - GitHub
I have updated Purchases SDK to the latest version ... [stderr] * What went wrong: [stderr] Execution failed for task ...
Read more >
Task :expo-dev-menu:compileDebugKotlin FAILED
1 yesterday, which included an upgrade to expo-dev-menu. This upgrade to expo-dev-menu (v1.3.1) has a fix for compile errors on android sdk 33....
Read more >
Expo SDK 46. Today we're announcing the release of…
SDK 46 includes React Native 0.69.5. ... in “Sunsetting the Web UI for Expo CLI”. expo-error-recovery has been deprecated and will be removed...
Read more >
Expo on Twitter: "SDK 46 beta is now available! Try upgrading ...
SDK 46 beta is now available! Try upgrading your app and let us know if you run into any issues! ⏳The beta period...
Read more >
Expo SDK 46 : r/expo - Reddit
This questions comes from the fact that SDK 46 uses react native 0.69 which is build on the new architecture and contains React...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found