logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

android静默安装apk已经成功实现

由于公司要求,应用后台更新下载必须使用静默安装,于是边研究了下。。         实现静默安装必须要2个前提条件:1、必须有对机器的ROOT权限 ; 2、必须有编译源码的环境         具备了以上2个条件就可以实现静默安装了。。        1、首先必须实现一个观察者的类,来监听apk安装成功或者失败,所以我们先写一个类去继承IPackageInstallObse

Flutter AAR 被引用 Failed to resolve: io.flutter:x86_debug XXX 问题

通过releaseImplementation 'com.example.xxx:flutter_release:1.0'debugImplementation 'com.example.xxx:flutter_debug:1.0'或者implementation 'com.example.xxx:flutter_release:1.0' 引用 Flutter aar时可能遇到如下错误信息ERRO

Android团队开发中如何快速定位代码修改者等提交信息

在团队协作开发过程中,很多时候需要知道某行代码最近一次是谁修改的,因为什么原因而修改,我们当然可以选择在团队即时通信群中询问,或者到版本控制系统中查看这个文件的版本提交纪录,但这样通常非常耗时,群里可能过了一天都没人会响应你的提问,而如果这行代码是很久以前修改的,你可能需要查阅到很久以前的一次提交。事实上在 Android Studio IDE 中,默认内置了非常方便的查看代码行提交记录的功能,当

Flutter Could not determine the dependencies of task ‘:xxx:compileDebugAidl‘.

Could not determine the dependencies of task ':share:compileDebugAidl'.> Could not resolve all task dependencies for configuration ':share:debugCompileClasspath'.> Could not resolve androidx.lif

#maven#gradle#flutter +1
Flutter 可滚动页面实现

ListView实现上拉刷新下拉加载

Flutter 获取屏幕宽度高度 通知栏高度等屏幕信息

MediaQueryMediaQuery.of(context)包含了一些屏幕的属性:size : 一个包含宽度和高度的对象,单位是dpprint(MediaQuery.of(context).size);//输出: Size(411.4, 683.4)devicePixelRatio : 返回设备的像素密度print(MediaQuery.of(context).devicePixelRatio

Flutter 输入框(TextField)被键盘遮挡两种解决方案

方案一:如果没有ScrollView或者ListView等可滚动空间包裹,则可以通过padding设置实现键盘不被遮挡问题Padding(padding: EdgeInsets.only(bottom: MediaQuery.of(context).viewInsets.bottom),child: TextField())MediaQuery.of(context).viewInsets.bot

文章图片
解决android:layout_marginBottom在RelativeLayout中无效的问题

页面布局遇到一个奇怪现象,在RelativeLayout 时最下面的 一个view 设置的layout_marginBottom 在小米手机显示正常,在三星,华为设置的距离就变为 0 了。

苹果 M1芯片运行Android模拟器

大多数模拟器都是基于x86芯片的,下载安装Android Studio之后带的模拟器在 M1 苹果笔记本启动时会报错,提示不支持,同时国内网易mumu

文章图片
Unhandled Exception: MissingPluginException(No implementation found for method xxx on channel xxx

Flutter 与 Native 进行通信可能遇到Unhandled Exception: MissingPluginException(No implementation found for method xxx ,通信渠道的方法找不到有可能如下问题1.new MethodChannel(flutterEngine.getDartExecutor(), channelName)生成 Method

    共 14 条
  • 1
  • 2
  • 请选择