【发布时间】:2021-04-06 22:30:46
【问题描述】:
我尝试为我的颤振应用程序生成 apk 文件,我在flutter clean 命令之后使用了flutter build apk --release 命令。
请注意,使用flutter build apk --release 命令后出现此错误:
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\android_intent-0.3.7+3\android\src\main\java\io\flutter\plugins\androidintent\MethodCallHandlerImpl.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\url_launcher-5.4.5\android\src\main\java\io\flutter\plugins\urllauncher\WebViewActivity.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
之后,我从这个路径获得了 apk 文件:C:\project_path\build\app\outputs\apk\release,但是当我尝试从手机安装这个 apk 时,我得到了这个 app not installed:
注意:我尝试过不止一台具有不同 Android 版本的设备。
请帮我解决我的问题。
【问题讨论】: