[英]emulator and phone code run well but when APK release it didnt work
i working on a flutter app.我正在开发一个颤振应用程序。 and when it run it goes well.
当它运行时,它运行良好。 on the mobile phone and the emulater.here is the screenshot, emulator work fine but after i create an APK.
在手机和模拟器上。这是屏幕截图,模拟器工作正常,但在我创建 APK 之后。 it shows only white screen.
它只显示白屏。 i cant show the code now.
我现在无法显示代码。 but can you show me the wrong.
但你能告诉我错误吗? after install APK screenshot a
安装APK后截图a
You need to set internet permission in your android manifest for it to work您需要在您的 android 清单中设置互联网权限才能使其工作
To do that, go to -- your-project\\android\\app\\src\\main\\AndroidManifest.xml and paste this code <uses-permission android:name="android.permission.INTERNET"/>
为此,请转到 -- your-project\\android\\app\\src\\main\\AndroidManifest.xml并粘贴此代码
<uses-permission android:name="android.permission.INTERNET"/>
This might be an issue of build-mode, release/debug.这可能是构建模式、发布/调试的问题。 if the apk was built in release mode and there's an issue let's say Null check error A grey screen will be used to hide it ie in release mode.
如果 apk 是在发布模式下构建的,并且存在问题,假设空检查错误 灰色屏幕将用于隐藏它,即在发布模式下。 This wouldn't be the case for debug mode.
调试模式不是这种情况。
So I suggest you check the logs for any error, exceptions or error you may have ignored in logs.因此,我建议您检查日志中是否存在您可能在日志中忽略的任何错误、异常或错误。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.