Skip to content
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 Things. Allow build included like .so ( i.e. Flutter runtime) to be stored uncompressed #17173

Closed
ghost opened this issue May 1, 2018 · 8 comments
Labels
platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android

Comments

@ghost
Copy link

ghost commented May 1, 2018

i am having issues putting the builds onto Android things.
Putting debug builds works fine over adb locally.

But uploading a release apk that is built using flutter build apk does not work.
The issue is that the .so are compressed and this is not allowed for Android things.
The exact error is:
"All shared object libraries(*.so) in the APK should be uncompressed"

Is there an option to make a release build this way to android ?


steps to repo to upload an app to android things console:

  1. Compile a simple flutter app for android using:
    flutter build apk --target-platform android-arm --release

  2. go to: https://partner.android.com/things/console/

  3. Navigate to the main hamburger menu and pick "App Library"

  4. Upload your apk, and wait a bit and you will get your error message "All shared object libraries(*.so) in the APK should be uncompressed"

@chinmaygarde chinmaygarde added platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android labels May 2, 2018
@chinmaygarde
Copy link
Member

@jason-simmons: Is this something that is controlled by Gradle?

@ghost
Copy link
Author

ghost commented May 2, 2018

@chinmaygarde i tried a few settings in the gradle build that i found online that mentioned compression etc. Cant remember the links right now.
None worked when i tried, but am not at all experienced in this.

Will be interesting what @jason-simmons thinks...

@zoechi
Copy link
Contributor

zoechi commented May 2, 2018

is this not a dup of #17134 ?

@ghost
Copy link
Author

ghost commented May 2, 2018

@zoechi Yes is is definitely a dup. thanks for picking that up.

@ghost
Copy link
Author

ghost commented May 7, 2018

Is there anything else I can do to help ?

I also also running on the vim2 hardware for fuchsia and can test that also if needed with Android things.

@BeanStalka
Copy link

Any word on this? I am seeing the same error

@zoechi
Copy link
Contributor

zoechi commented Dec 4, 2018

Closing as dup of #17134

@zoechi zoechi closed this as completed Dec 4, 2018
@github-actions
Copy link

github-actions bot commented Sep 1, 2021

This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 1, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform-android Android applications specifically t: gradle "flutter build" and "flutter run" on Android
Projects
None yet
Development

No branches or pull requests

3 participants