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.

Direct local hermes-release.aar file dependencies are not supported when building an AAR

See original GitHub issue

Description

Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from any local .aar file dependencies would not be packaged in the resulting AAR. Previous versions of the Andr oid Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :ReactNative project caused this error: D:\works\HAssistant\HzgClientHUAZHU\node_modules\hermes-engine\android\hermes-release.aar

Version

0.62.2

Output of npx react-native info

System: OS: Windows 10 10.0.19042 CPU: (12) x64 AMD Ryzen 5 PRO 4650G with Radeon Graphics Memory: 3.21 GB / 15.38 GB Binaries: Node: 14.17.5 - C:\Program Files\nodejs\node.EXE Yarn: 1.22.11 - ~\AppData\Roaming\npm\yarn.CMD npm: 6.14.14 - C:\Program Files\nodejs\npm.CMD Watchman: Not Found SDKs: Android SDK: Not Found Windows SDK: Not Found IDEs: Android Studio: Version 4.1.0.0 AI-201.8743.12.41.6858069 Visual Studio: Not Found Languages: Java: 1.8.0_242-release Python: 3.10.1 npmPackages: @react-native-community/cli: Not Found react: 16.11.0 => 16.11.0 react-native: 0.62.2 => 0.62.2 react-native-windows: Not Found npmGlobalPackages: react-native: Not Found

Steps to reproduce

the build.gradle:

if (enableHermes) { def hermesPath = “…/…/node_modules/hermes-engine/android/”; debugImplementation files(hermesPath + “hermes-debug.aar”) releaseImplementation files(hermesPath + “hermes-release.aar”) } else { implementation ‘org.webkit:android-jsc:+’ }

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
wilsolutionscommented, Jan 20, 2022

Direct local .aar file dependencies are not supported when building an AAR.

You should not need to bundle hermes-release.aar if you’re trying to build an AAR (a library). It should be up to final consumer (the app) to decide which JS engine to use.

Please let me know if I’m missing something on your setup

Yeah, I agree with that.

However what about a React Native Module that contains 2 .arr libs and it fails if we pass the --deviceId flag? Would you have any insight about this? It runs fine in the device without the flag 😂

0reactions
cortinicocommented, Aug 8, 2022

Hey, I needed to put this on hold given other priorities but I will need to revisit at certain point before releasing the App.

I’m closing this as it’s stale + the issue you’re havign @wilsolutions it’s different from the root issues. Feel free to open a new issue with reproducer once you have time 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Direct local .aar file dependencies are not supported
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and ...
Read more >
[RN0.66][Android] Direct local .aar file dependencies are not ...
Direct local .aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and ...
Read more >
Direct local .aar file dependencies are not supported - YouTube
Android : Error building Android library: Direct local . aar file dependencies are not supported [ Beautify Your Computer ...
Read more >
解决:Direct local .aar file dependencies are not supported ...
aar file dependencies are not supported when building an AAR. The resulting AAR would be broken because the classes and Android resources from ......
Read more >
Prerequisites for Applications - React Native
There are a few prerequisites that should be addressed before the New Architecture is enabled in your application.
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