颤振:构建apk后颤振应用程序不起作用



大家好,我终于用flutter完成了我的应用程序的开发,这取决于我开发时的API数据我用我的手机运行它做得很好,但当我需要用communicated输出apk时flutter build apk显示,但当使用API的数据登录到应用程序时,我不工作,但当运行应用程序时一切正常…有什么问题

按摩显示我何时构建apk

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:srcflutter.pub-cachehostedpub.dartlang.orgpath_provider-1.6.5androidsrcmainjavaioflutterpluginspathproviderPathProviderPlugin.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 buildappoutputsapkreleaseapp-release.apk (19.3MB).

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

<uses-permission android:name="android.permission.INTERNET" />

相关内容

最新更新