- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
嘿,我在构建我的应用程序时遇到了一个问题。
只有当我尝试将 apk 构建为发行版时才会出现错误我可以调试它并且我可以将应用程序构建为调试我尝试将 compileSDKVersion 更改为 28 并将 targetSdkVersion 也更改为 28
这是我收到的回复 flutter build apk --release
司令部。
flutter build 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'...
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:15: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:16: error: cannot find symbol
import android.support.v4.app.ActivityCompat;
^
symbol: class ActivityCompat
location: package android.support.v4.app
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:17: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerFileProvider.java:3: error: package android.support.v4.content does not exist
import android.support.v4.content.FileProvider;
^
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerFileProvider.java:10: error: cannot find symbol
public class ImagePickerFileProvider extends FileProvider {}
^
symbol: class FileProvider
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerPlugin.java:8: error: package android.support.annotation does not exist
import android.support.annotation.VisibleForTesting;
^
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:68: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_CHOOSE_IMAGE_FROM_GALLERY = 2342;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:69: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_TAKE_IMAGE_WITH_CAMERA = 2343;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:70: error: cannot find symbol
@VisibleForTesting static final int REQUEST_EXTERNAL_IMAGE_STORAGE_PERMISSION = 2344;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:71: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CAMERA_IMAGE_PERMISSION = 2345;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:72: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_CHOOSE_VIDEO_FROM_GALLERY = 2352;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:73: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CODE_TAKE_VIDEO_WITH_CAMERA = 2353;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:74: error: cannot find symbol
@VisibleForTesting static final int REQUEST_EXTERNAL_VIDEO_STORAGE_PERMISSION = 2354;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:75: error: cannot find symbol
@VisibleForTesting static final int REQUEST_CAMERA_VIDEO_PERMISSION = 2355;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:77: error: cannot find symbol
@VisibleForTesting final String fileProviderName;
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:164: error: cannot find symbol
@VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerDelegate
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerPlugin.java:40: error: cannot find symbol
@VisibleForTesting
^
symbol: class VisibleForTesting
location: class ImagePickerPlugin
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:122: error: cannot find symbol
return ActivityCompat.checkSelfPermission(activity, permissionName)
^
symbol: variable ActivityCompat
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:128: error: cannot find symbol
ActivityCompat.requestPermissions(activity, new String[] {permissionName}, requestCode);
^
symbol: variable ActivityCompat
C:\Users\iAbdou\AppData\Roaming\Pub\Cache\hosted\pub.dartlang.org\image_picker-0.4.12+1\android\src\main\java\io\flutter\plugins\imagepicker\ImagePickerDelegate.java:140: error: cannot find symbol
return FileProvider.getUriForFile(activity, fileProviderName, file);
^
symbol: variable FileProvider
20 errors
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':image_picker:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 3m 10s
Running Gradle task 'assembleRelease'...
Running Gradle task 'assembleRelease'... Done 193.4s (!)
The built failed likely due to AndroidX incompatibilities in a plugin. The tool is about to try using Jetfier to solve the
incompatibility.
Building plugin flutter_plugin_android_lifecycle...
Running Gradle task 'assembleAarRelease'...
Running Gradle task 'assembleAarRelease'... Done 0.6s
Exception in thread "main" java.lang.NullPointerException
at org.gradle.wrapper.BootstrapMainStarter.findLauncherJar(BootstrapMainStarter.java:34)
at org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:25)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:129)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
The plugin flutter_plugin_android_lifecycle could not be built due to the issue above.
flutter doctor
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, v1.12.13, on Microsoft Windows [Version 10.0.18362.720], locale en-US)
[√] Android toolchain - develop for Android devices (Android SDK version 29.0.2)
[√] Android Studio (version 3.4)
[!] IntelliJ IDEA Ultimate Edition (version 2019.1)
X Flutter plugin not installed; this adds Flutter specific functionality.
X Dart plugin not installed; this adds Dart specific functionality.
[√] VS Code (version 1.43.1)
[!] Connected device
! No devices available
! Doctor found
最佳答案
对于线程“main” java.lang.NullPointerException
关于文件 gradle-wrapper.properties
, 我变了:
distributionUrl=https://services.gradle.org/distributions/gradle-4.10.2-all.zip
distributionUrl=https://services.gradle.org/distributions/gradle-5.6.2-all.zip
那么请尝试 flutter clean
然后运行
关于flutter - Flutter 应用程序构建上的任务 ':sms:verifyReleaseResources' 和线程 "main"中的异常 java.lang.NullPointerException 执行失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61001134/
我是发送 SMS 的新手,我需要构建一个不需要与任何 SMS 提供商或移动运营商集成的 SMS 网关。但是,我不知道这是否可能。 有人推荐了两个他们声称能够做到这一点的库。这些库基于 SMPP。以下是
我遇到了必须做出的选择。 请告知Kannel和Jasmin SMS之间SMS平台的最佳选择是什么。谁知道任何利弊? 最佳答案 作为python程序员,我对Jasmin感到更自在。它工作得很好,对我来说
通过 Clickatell API 发送英语和西类牙语消息时,SMS 消息的最大长度是多少? 英语和西类牙语的消息长度有区别吗,因为西类牙语可能包含 Unicode 字符? 最佳答案 来自 SMS w
关闭。这个问题是off-topic .它目前不接受答案。 想改进这个问题吗? Update the question所以它是on-topic用于堆栈溢出。 关闭 11 年前。 Improve thi
Twilio SMS 消息在英语中运行良好,但法语口音不起作用。重音字符替换为 ?符号。我该怎么办? 最佳答案 我发现将正文转换为 UTF-8 可以解决这个问题,而且价格实际上降低了一半。区别在于我需
我注意到我从公司收到的某些 SMS 消息带有“发件人姓名”。例如。就在今天,我收到了一条我以前从未使用过的号码(不是我的联系人)发来的短信,但是发件人的名字显示为“Adobe”。我也从其他公司得到这个
是否可以使用您的个人移动帐户以编程方式发送 SMS 消息? 是否有任何移动网络(位置目前不重要)允许订阅者通过网关 api 发送短信? 最佳答案 移动运营商为此目的使用短消息对等协议(protocol
我正在研究通过 API 调用同时提供 SMS 和语音邮件服务的公司。我希望能够通过短信和语音邮件联系用户(其中大多数是美国用户)。这个想法是,我们的网络服务器将连接到 SMS/语音邮件提供商的服务
我需要开发一个 Android 应用程序来接收来自特定发件人的短信,当收到短信时,应用程序必须被激活并获取短信附带的所有值,请给我答案? 最佳答案 您可以使用 BroadcastReciver 来阅读
我使用 twilio 发送短信,但在我尝试创建的消息中,它是一个很长的 url,因此不会发送 160 个字符,因此 twilio 切断了消息并且 url 不起作用。 如果我使用自动 twilio Sh
我正在处理 SMS 和 PDU,并创建串联消息以通过 GSM 调制解调器 (Cinterion MC35i) 发送,但是当我发送串联消息时,它从未出现在另一端。这是与调制解调器的通信记录: at OK
SMS 草稿的 native 内容 URI 是什么? 最佳答案 您可以通过不同的打开方式打开每个短信部分。 收件箱 = "content://sms/inbox" 失败 = "content://sm
我正在尝试使用 Twilio Java API 发送消息。使用试用帐户,我看到我的消息中添加了前缀。 可以删除/修改这个前缀“从您的 Twilio 试用帐户发送”吗? 最佳答案 Twilio 开发人员
2G 和 3G 已经在少数国家停用,其他国家也将很快停用。 LTE 模块的 VoLTE 功能对于能够通过 4G 进行调用而无需 2G/3G 回退是必需的。 native SMS 可以通过 2G/3G
我使用的是 Android 1.6。我想查询“content://sms/inbox”。如何实现? 最佳答案 无论是否是 SDK 的一部分,除了使用 content://sms/inbox 之外,我看
2G 和 3G 已经在少数国家停用,其他国家也将很快停用。 LTE 模块的 VoLTE 功能对于能够通过 4G 进行调用而无需 2G/3G 回退是必需的。 native SMS 可以通过 2G/3G
我有两个问题。 我正在为我尝试在 Twilio SMS 工具中为最终用户和管理人员编写代码的客户创建网站。我已经构建了请求和响应工具,所以我在功能上都设置好了。所以问题是: A.我可以向任何电话号码发
我正在尝试获取短信对话列表和所有短信,就像这样的结构:(这是一个对话结构)。 [ "names":[ "Antoine Duval", "Mike Tyson"
我有 20 个联系人存储在数组中,我想只检索这些联系人的短信,然后相应地处理它们? 这可能吗?我的意思是我可以编写 where 子句来存储查询中的联系人,然后检索如果可以的话如何去做? 还是应该使用
首先,我使用模拟器进行测试。我想使用消息文本(作为参数发送)打开默认 SMS 应用程序,并允许用户从那里(和内置应用程序)进行控制。我使用这段代码: Button btnSMS = (Button)
我是一名优秀的程序员,十分优秀!