0

I signed my flutter app in Android Studio step by step by following this answer and there after following the Flutter's Build and Release instructions. I run flutter build apk --split-per-abi and release apk builds but when I try to run that specific architecture app it fails to do so on some devices.

flutter clean
flutter pub get

ran these commands but still the same. please help I'm stuck with signing for the past 2 months.

Yash Jha
  • 137
  • 5
  • 16
  • https://www.youtube.com/watch?v=g1fByAsqQRk. Please watch this video. It's explained properly, i followed these steps and was able to generate proper apk – sungkd123 Jun 09 '21 at 13:33
  • Were you able to run on every device that you installed it in? As I had previously signed my app using command line then only after I shifted to sign using AS. So this is my main concern. – Yash Jha Jun 09 '21 at 13:53
  • Yes i was able to run on every device and so far no complains from others. – sungkd123 Jun 09 '21 at 14:06
  • i followed every step but no it is just not working on some devices. my app is a whatsapp status saver app and it displays statuses to save with a tap on save button. only this part is not showing in the app. and i'm stuck with this . this is my first app that's why i'm having issues. – Yash Jha Jun 10 '21 at 11:12
  • When you say your app is not working with other devices do you mean it's not getting installed or it's not working functionally? Please check the minimum sdk version in you gradle also check on which devices it's not working maybe you'll find something common like it works with Android 9 and not working after on Android 10 phones – sungkd123 Jun 10 '21 at 12:34
  • Yes it's working on Android 9 but not with 10 and +. Any idea about that? – Yash Jha Jun 10 '21 at 12:51
  • Yes, so you need to migrate your project to support Android 10. You would need to download proper SDK and do some changes in your gradles. More info on this topic here https://flutter.dev/docs/development/androidx-migration . Please keep a backup of your original code, check the pros and cons before you begin – sungkd123 Jun 10 '21 at 12:57
  • But my project is already set to API level 30. target SdkVersion is 30. And it's compatible to android x – Yash Jha Jun 10 '21 at 13:02
  • okay. Is there an installation error when user tries to install in Android 10 device? or the app is installed but it is not working? – sungkd123 Jun 10 '21 at 13:57
  • App is installed but not working. It just shows the appbar with its title. But not the body where the data is present that is the statuses from WhatsApp. In the body it's just plain white body. – Yash Jha Jun 10 '21 at 14:12
  • Is it possible to share the source code? Maybe it's some render overflow issue – sungkd123 Jun 10 '21 at 16:02
  • here you go https://github.com/theyashjha/status-saver – Yash Jha Jun 11 '21 at 06:41
  • So i created an unsigned apk and installed it on my device (OnePlus 6T running on Android 10) , i was able to run it , even the status was saved successfully. Your app is not working on Android 10 only in signed apk version? – sungkd123 Jun 11 '21 at 13:42
  • at this point i really think my app is okay but android studio is broken. can you please try that app on android 11? it's not working on my android 11 device so! – Yash Jha Jun 11 '21 at 13:50
  • also my app is not working in either case. in android 10 and above. – Yash Jha Jun 11 '21 at 13:51
  • Android studio can be a pain sometimes, can you try with VSCode?. Also i don't think it's signed apk issues you must be missing some sdk or libraries in android studo including NDK (side by side). Unfortunately i don't have Android 11 device so can't check – sungkd123 Jun 11 '21 at 14:50
  • Is android ndk necessary? I don't have it in my android studio i just have sdk tools and all. So do you think that might be causing the problem? – Yash Jha Jun 11 '21 at 15:04
  • No harm in trying to be honest, yes please install NDK i have installed in my machine. maybe it'll help – sungkd123 Jun 11 '21 at 16:39

0 Answers0