当我尝试在我的 flutter 应用程序的 android studio 中生成签名的 apk 时出现此错误 - Process 'command 'E:\Flutter Apps\flutter\bin\flutter.bat'' finished with non-zero exit value 1
我能够在模拟器和我的设备上运行该应用程序,但仅当我尝试构建已签名的 apk 时才会出现此错误。
flutter doctor
[?] Flutter (Channel dev, v1.2.0, on Microsoft Windows [Version 10.0.17763.253], locale en-US)
[?] Android toolchain - develop for Android devices (Android SDK version 28.0.3)
[?] Android Studio (version 3.3)
[?] VS Code (version 1.30.2)
[?] Connected device (1 available)
• No issues found!
Run Code Online (Sandbox Code Playgroud)
有任何解决这个问题的方法吗?
试过 flutter clean
android studio Build > clean project and rebuild project …
我正在制作一个墙纸应用程序,它从 GridView.builder 的列表中显示许多高清图像(大约 90 张高清图像),并且图像没有被缓存。每次我上下滚动时,它们都会重新加载。我尝试使用普通网络图像甚至 CachedNetworkImage 但结果相同。有什么解决办法吗?
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(title: Text("Fetch Data JSON"),),
body: isLoading? Container(
alignment: new Alignment(0, 0),
child: CircularProgressIndicator(),
decoration: new BoxDecoration(color: Color.fromARGB(230, 0, 0, 0)),)
:
Container(
decoration: new BoxDecoration(color: Color.fromARGB(230, 0, 0, 0)),
child: new GridView.builder(
gridDelegate: SliverGridDelegateWithFixedCrossAxisCount(crossAxisCount: 1,childAspectRatio:3),
itemCount: list.length,
padding: EdgeInsets.all(0.0),
itemBuilder: (BuildContext context, int index) {
final cacheimg = CachedNetworkImage(
imageUrl: list[index].imgcollectionsrcimage.toString(),
placeholder: new CircularProgressIndicator(),
errorWidget: new Icon(Icons.error, color: Colors.white,),
);
return Stack(
children: <Widget>[
//new …Run Code Online (Sandbox Code Playgroud) 这是我的字符串:
window.urlVideo = 'https://node34.vidstreamcdn.com/hls/5d59908aea5aa101a054dec2a1cd3aff/5d59908aea5aa101a054dec2a1cd3aff.playlist.m3u8';
var playerInstance = jwplayer("myVideo");
var countplayer = 1;
var countcheck = 0;
playerInstance.setup({
sources: [{
"file": urlVideo
}],
tracks: [{
file: "https://cache.cdnfile.info/images/13f9ddcaf2d83d846056ec44b0f1366d/12.vtt",
kind: "thumbnails"
}],
image: "https://cache.cdnfile.info/images/13f9ddcaf2d83d846056ec44b0f1366d/12_cover.jpg",
});
function changeLink() {
window.location = "//vidstreaming.io/load.php?id=MTM0OTgz&title=Mairimashita%21+Iruma-kun+Episode+12";
}
window.shouldChangeLink = function () {
window.location = "//vidstreaming.io/load.php?id=MTM0OTgz&title=Mairimashita%21+Iruma-kun+Episode+12";
}
Run Code Online (Sandbox Code Playgroud)
我正在使用颤动飞镖。
如何获取 window.urlVideo URL 链接和图像 URL 链接以及 .vtt 文件链接?
或者
如何从字符串中获取 URL 列表?我尝试找到一种使用和不使用 RegEx 的方法,但我不能。
任何帮助都值得赞赏
我正在使用https://github.com/pichillilorenzo/flutter_inappbrowser在我的应用程序中显示 web 视图。网站上的视频正在播放但即使按下全屏按钮也无法全屏显示。
有没有办法在网页视图中全屏显示视频?
我的原生和原生横幅广告的填充率为零。我测试了超过 30k 的广告请求,但根本没有获得任何填充率。它不断显示正在请求广告,但即使集成正确,广告也没有被填充。
演示广告运行良好,但当我将其更改为我的展示位置 ID 时,我没有得到填充率。我已经仔细检查过多次集成,集成完全没有问题。
https://github.com/dreamsoftin/facebook_audience_network是我正在使用的插件。我检查了我的展示位置 ID 是否也可以使用本机 Android 应用程序正常工作,但我一直得到相同的无填充率
我检查了这个问题的解决方案,我添加了网络安全配置文件,使用设备 ID 进行了测试,并从https://developers.facebook.com/docs/audience-network/testing/测试用户,但根本没有解决问题。我问了另一个人,他也得出了同样的结论,这是一些服务器端问题。
图片: https: //ibb.co/Dthh8Vv
这是我在控制台日志上收到的消息:
{error_message: No fill, invalidated: true, error_code: 1001, placement_id: 383262725809870_384038435732299}
Run Code Online (Sandbox Code Playgroud)
我确信不存在集成错误,因为演示广告运行良好,但真实广告并未填充。您能在这方面帮助我吗?
另外,如果您没问题的话,有人可以分享任何工作横幅、原生展示位置 ID 吗?
这是我的应用程序的正常外观:

我想隐藏状态栏区域和底部导航栏,以便全屏显示图像。
SystemChrome.setEnabledSystemUIOverlays([]);
状态栏区域被隐藏但状态栏有黑色或空白区域
SystemChrome.setEnabledSystemUIOverlays(SystemUiOverlay.values);然后我得到与 [image1][1] 相同的结果
SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.top]);我看到这个看起来很奇怪的导航栏,状态栏还在

SystemChrome.setEnabledSystemUIOverlays([SystemUiOverlay.bottom]);状态栏区域为黑色,出现导航栏

尝试有和没有安全区。仍然没有获得所需的全屏。
有什么办法可以使状态栏隐藏(不创建空白区域)并隐藏导航栏使图像全屏显示,即甚至利用缺口侧区域?