Skip to content

Installing a flutter apk on Pixel C w/ Nougat takes 40+ seconds #6020

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

Closed
apwilson opened this issue Sep 23, 2016 · 14 comments
Closed

Installing a flutter apk on Pixel C w/ Nougat takes 40+ seconds #6020

apwilson opened this issue Sep 23, 2016 · 14 comments

Comments

@apwilson
Copy link
Contributor

apwilson commented Sep 23, 2016

12:32:28.701: 41499 ms • <redacted>/android-sdk-linux/platform-tools/adb -s <redacted> install -r build/app.apk

It used to take less than 10. (before I upgraded my device to Nougat).

@chinmaygarde
Copy link
Member

What is the size of the APK being installed? I have been testing on Nougat for the past week and haven't seen any regression. Also, are you using the Android SDK in third_party or using your own?

@apwilson
Copy link
Contributor Author

14.7MB

@apwilson
Copy link
Contributor Author

My own sdk

@apwilson
Copy link
Contributor Author

Where is this third party one?

@chinmaygarde
Copy link
Member

Sorry. I assumed you were using the engine repository. In the engine, it is at third_party/android_tools/sdk/platform-tools. Currently, we use Android Debug Bridge version 1.0.32. Maybe we need to recommend updating the SDK if we think certain versions are slow for Nougat.

@apwilson
Copy link
Contributor Author

What parts of an android sdk are needed to use flutter? Just built/platform tools or does it need all those system images?

@chinmaygarde
Copy link
Member

https://flutter.io/setup/#android-setup

We need the SDK as well as the tools for building the APK.

@chinmaygarde
Copy link
Member

What does adb version version say on your machine?

@apwilson
Copy link
Contributor Author

Android Debug Bridge version 1.0.36

@chinmaygarde
Copy link
Member

Damn, thats actually newer than the one I am using. Lets try export ADB_TRACE=all and see where it is stuck/slow.

@apwilson apwilson changed the title Installing a flutter apk on Nougat takes 40+ seconds Installing a flutter apk on Pixel C w/ Nougat takes 40+ seconds Sep 23, 2016
@apwilson
Copy link
Contributor Author

apwilson commented Sep 23, 2016

Working with Chinmay offline we found his 6P w/Nougat (same build NRD90R) was fine with my setup so it appears to be something specific about my Pixel C.

@apwilson
Copy link
Contributor Author

fwiw, I discovered that if I uninstall the app before installing the new one this issue went away.

@eseidelGoogle
Copy link
Contributor

@apwilson Doesn't flutter run uninstall for you?

@github-actions
Copy link

github-actions bot commented Sep 5, 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 5, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants