star-micronics / react-native-star-io10

react-native-star-io10 is a library for supporting application development for Star Micronics devices.
Other
88 stars 54 forks source link

Release Build failed at bundleReleaseAar #6

Closed pedromcunha closed 3 years ago

pedromcunha commented 3 years ago

I tried to compile a release build on Android for testing and received this error:

Task :react-native-star-io10:bundleReleaseAar FAILED
w: Detected multiple Kotlin daemon sessions at build/kotlin/sessions

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':react-native-star-io10:bundleReleaseAar'.
> 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 Android Gradle Plugin produce broken AARs in this case too (despite not throwing this error). The following direct local .aar file dependencies of the :react-native-star-io10 project caused this error: /[REDACTED]/node_modules/react-native-star-io10/android/src/lib/stario10.aar

Here's the command I used to build:

cd ./android && ./gradlew assembleRelease && cd ..

Not sure where to go from here, do I need to include the aar files in gradle somehow?

gare-bear commented 3 years ago

@pedromcunha try building with cd ./android && ./gradlew :app:assembleRelease && cd ..

pedromcunha commented 3 years ago

Yep this works, thank you for looking into it