首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >颤振:在构建apk之后,颤振应用程序不起作用

颤振:在构建apk之后,颤振应用程序不起作用
EN

Stack Overflow用户
提问于 2020-04-03 22:55:08
回答 1查看 1K关注 0票数 1

最后,我用完成了应用程序的开发,它依赖于API数据,当我开发的时候,我用我的手机运行它做得很好,但是当我需要用输出apk时,它会显示,但是当登录到应用程序时,使用API‘’ts的数据,我不起作用,但是什么时候运行应用程序--一切正常运行--…有什么问题吗?

按摩告诉我什么时候构建apk

代码语言:javascript
复制
You are building a fat APK that includes binaries for android-arm, android-arm64, android-x64.
If you are deploying the app to the Play Store, it's recommended to use app bundles or split the APK to reduce the APK size.
    To generate an app bundle, run:
        flutter build appbundle --target-platform android-arm,android-arm64,android-x64
        Learn more on: https://developer.android.com/guide/app-bundle
    To split the APKs per ABI, run:
        flutter build apk --target-platform android-arm,android-arm64,android-x64 --split-per-abi
        Learn more on:  https://developer.android.com/studio/build/configure-apk-splits#configure-abi-split
Running Gradle task 'assembleRelease'...                                                                                  Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: C:\src\flutter\.pub-cache\hosted\pub.dartlang.org\path_provider-1.6.5\android\src\main\java\io\flutter\plugins\pathprovider\PathProviderPlugin.java uses or overrides a deprecated A
PI.
Note: Recompile with -Xlint:deprecation for details.
Removed unused resources: Binary resource data reduced from 46KB to 37KB: Removed 20%
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done                     413.1s (!)
√ Built build\app\outputs\apk\release\app-release.apk (19.3MB).
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2020-04-04 00:23:51

在android/app/src/main/AndroidManifest.xml上添加:

代码语言:javascript
复制
<uses-permission android:name="android.permission.INTERNET" />
票数 4
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/61021598

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档