question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[android] URGENT -> cannot build app: <anonymous expo.modules.adapters.reanimated.EXReanimatedPackage$1> is not abstract and does not override abstract method getBundleAssetName(boolean)

See original GitHub issue

Description

I cannot build the android version of my app since updating to the newest version of Reanimated. I’m using expo dev client.

Expected behavior

Installation successful

steps to reproduce

delete android dir expo run:android --device

Error

> Task :react-native-reanimated:compileDebugJavaWithJavac FAILED
/Users/marius/Projekte/cabernet-und-co/node_modules/react-native-reanimated/android/expo/src/main/java/expo/modules/adapters/reanimated/EXReanimatedPackage.java:18: error: <anonymous expo.modules.adapters.reanimated.EXReanimatedPackage$1> is not abstract and does not override abstract method getBundleAssetName(boolean) in expo.modules.core.interfaces.ReactNativeHostHandler
    final ReactNativeHostHandler handler = new ReactNativeHostHandler() {
                                                                        ^
1 error

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-reanimated:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for 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 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.9/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 33s
451 actionable tasks: 451 executed
/Users/marius/Projekte/cabernet-und-co/android/gradlew exited with non-zero code: 1
Error: /Users/marius/Projekte/cabernet-und-co/android/gradlew exited with non-zero code: 1
    at ChildProcess.completionListener (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:65:13)
    at Object.onceWrapper (node:events:434:26)
    at ChildProcess.emit (node:events:327:20)
    at maybeClose (node:internal/child_process:1048:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:288:5)
    ...
    at spawnAsync (/usr/local/lib/node_modules/expo-cli/node_modules/@expo/spawn-async/src/spawnAsync.ts:26:19)
    at spawnGradleAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/spawnGradleAsync.ts:83:18)
    at assembleAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/spawnGradleAsync.ts:57:16)
    at actionAsync (/usr/local/lib/node_modules/expo-cli/src/commands/run/android/runAndroid.ts:143:9)

Package versions

  • React Native: 0.64.3
  • React Native Reanimated: 2.3.0
  • Expo: 43

Affected platforms

  • Android
  • iOS
  • Web

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

10reactions
Kudocommented, Dec 8, 2021

we’ve published expo@43.0.4 and expo-modules-core@0.4.9 for the EXReanimatedPackage is not abstract and does not override abstract method issue. you could probably run yarn upgrade expo to upgrade both. if this doesn’t works for you, please share your yarn why expo-modules-core output with us. thanks!

for Attempt to invoke interface method 'boolean com.swmansion.reanimated.layoutReanimation.NativeMethodsHolder.isLayoutAnimationEnabled()' on a null object reference issue, it seems to be another problem and i cannot reproduce locally. maybe you can create a new issue with minimal reproducible example. reanimated team or we will happy to help with that.

1reaction
mwegener-comcommented, Dec 8, 2021

That was quick, thanks!

yarn upgrade expo went fine. Other problem still exists, I will create a new Issue for that. -> https://github.com/software-mansion/react-native-reanimated/issues/2702

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error: ConstantsService is not abstract and does not override ...
I needed to remove the unimodules package and move to the expo one: https://docs.expo.dev/bare/installing-expo-modules/.
Read more >
:react-native-reanimated:compiledebugjavawithjavac - You.com
EXReanimatedPackage$1 > is not abstract and does not override abstract method getBundleAssetName(boolean) in expo.modules.core.interfaces.
Read more >
Updates - Expo Documentation
Such an app will not open the latest JavaScript from your development server — it will load published updates just as a release...
Read more >
expo-updates - npm
Debug builds of Android apps do not, by default, have any assets bundled into the APK; they are always loaded at runtime from...
Read more >
<anonymous com.bignerdranch.android.geoquiz.QuizActivity ...
I'm trying to build the app using android studio at the end of chapter 1 ... QuizActivity$1> is not abstract and does not...
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