-
Notifications
You must be signed in to change notification settings - Fork 149
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
Android release artifacts not always found by shorebird release android
#1798
Comments
Currently attempting to find out why this is happening |
Reproduction steps:
diff --git a/android/gradle/wrapper/gradle-wrapper.properties b/android/gradle/wrapper/gradle-wrapper.properties
index e1ca574..5e6b542 100644
--- a/android/gradle/wrapper/gradle-wrapper.properties
+++ b/android/gradle/wrapper/gradle-wrapper.properties
@@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-all.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
diff --git a/android/settings.gradle b/android/settings.gradle
index 1d6d19b..f181659 100644
--- a/android/settings.gradle
+++ b/android/settings.gradle
@@ -19,7 +19,7 @@ pluginManagement {
plugins {
id "dev.flutter.flutter-plugin-loader" version "1.0.0"
- id "com.android.application" version "7.3.0" apply false
+ id "com.android.application" version '8.3.0' apply false
id "org.jetbrains.kotlin.android" version "1.7.10" apply false
}
|
I have now the same error with Shorebird 0.26.7 and Flutter 3.19.3.
|
Hmm, I think that might be a different error – the CLI should be looking there already. Does your app use flavors by any chance? |
No, I my app doesn't use flavors and I've never had error like this before. My app using shorebird from few months and always everything was fine |
We haven't made any changes to this recently, but maybe it's possible that you upgraded your |
I've updated my app and Gradle - yes, but I think I did that before my latest release (with success build) |
@bryanoltman when will be next release with fix for that? |
@Fudal the fix was just released in version 0.27.0 |
Thank you for the update! |
Description
Android builds output the libapp.so files (release artifacts) to
build/app/intermediates/stripped_native_libs/[A]/[B]/out/lib/[arch]/libapp.so
, where:A
is eitherrelease
or[flavorName]Release
, depending on whether the app uses flavorsB
is one ofout
is an immediate subdirectory ofA
)stripReleaseDebugSymbols
, if no flavors were usedstrip[flavor]ReleaseDebugSymbols
, where[flavor]
is the name of the flavor that was used.arch
is one of (arm64-v8a, armeabi-v7a, x86_64)Shorebird looks for
build/app/intermediates/stripped_native_libs/release/out/lib/[arch]/libapp.so
, so the addition of theB
directory from above causes a PathNotFound exception:The text was updated successfully, but these errors were encountered: