Skip to content

Commit

Permalink
try fix in build.grade for bad hermes version
Browse files Browse the repository at this point in the history
Deal with bad `hermesCommand`? expo/fyi#86 (comment)

Was getting an error similar to OP, something like `com.facebook.jni.CppException: Compiling JS failed: Wrong bytecode version. Expected 85 but got 84`
  • Loading branch information
ariccio committed Dec 17, 2022
1 parent c0f859d commit 48d7c86
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion co2_native_client/android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,10 @@ import org.apache.tools.ant.taskdefs.condition.Os
project.ext.react = [
enableHermes: true,
cliPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/cli.js",
hermesCommand: new File(["node", "--print", "require.resolve('hermes-engine/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/%OS-BIN%/hermesc",


// See https://github.com/expo/fyi/issues/86#issue-1388603237
hermesCommand: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/sdks/hermesc/%OS-BIN%/hermesc",
composeSourceMapsPath: new File(["node", "--print", "require.resolve('react-native/package.json')"].execute(null, rootDir).text.trim()).getParentFile().getAbsolutePath() + "/scripts/compose-source-maps.js",
]

Expand Down

0 comments on commit 48d7c86

Please sign in to comment.