-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to build apk with :app:assembleRelease
#91
Comments
@kickbk Thank you for your information. I am confirming this issue, so thank you for your patience. |
I have confirmed that this does not fail for our sample SDK that do not have the If I have made some misunderstanding, please let me know. If so, I would appreciate it if you would share your environmental information and expected behavior as well as the actual information as it is in the template. Thank you! |
Same problem, building APK with Android Studio Executing tasks: [:app:assembleRelease, :app:assembleReleaseUnitTest] in project full error message:
os version: macOS 13.3 (m1) Also tried run
I am not sure this information is enough, please let me know if you need more information. |
I also have the same issue when building the apk. @kickbk did you find a solution in the end? I have tried to build both with and without expo and have no luck in bulidling any apk. @bandit-ibayashi did you run the building on mac or windows? I tried to extract the example to it own project and replaced the react-native-star-io10 version in package.json with "1.3.0". When I try to build, it fails as described above. It can run locally fine, but cannot assemble any apk. |
Any update on this @bandit-ibayashi ? |
This is a known issue. Make the two changes here in the node_modules/react-native-star-io10 folder: https://github.com/star-micronics/react-native-star-io10/pull/56/files |
I need to build a development client apk to be installed on a device.
When building an apk with
:app:assembleDebug
, or when building an aab for production with:app:bundleRelease
, it builds correctly.It fails when building a apk development client that is to be installed on the phone (
:app:assembleRelease
). Is there a way to build this without running intoDirect local .aar file dependencies are not supported when building an AAR
?I believe your proposed PR with
compileOnly
fix does not apply here. I tried it and it failed an apk with:app:assembleRelease
I should mention that on Expo, I can see
Running 'gradlew :app:assembleRelease' in /home/expo/workingdir/build/apps/myApp/android
, which is equivalent to your proposed solution here and hereThe text was updated successfully, but these errors were encountered: