自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(36)
  • 收藏
  • 关注

原创 androidX 在AndroidMainfest里面加入provider后编译不通过

<provider android:name="androidx.core.content.FileProvider" android:authorities="包名.fileprovider" android:exported="false" android:grantUriPermissions="true"> <meta-data a

2020-08-03 16:59:39 2390

原创 Could not resolve com.android.tools.build:gradle:4.0.0.

打开别人发过来的项目的时候gradle一直下载不下来,然后报错。尝试了很多办法 最后在用户变量种添加 Android_SDK_ROOT 自己的Android SDK路径,gradle 下载成功。可能遇到的具体错误问题不一样仅供参考。...

2020-06-22 09:14:40 20297 3

原创 What went wrong: Could not determine the dependencies of task :url_launcher:compileDebugAidl

运行项目时候出来这个错误1.先 flutter doctor如果有错误 按照提示改错误2.在运行 flutter pub cache repair上述方法并未完全解决该问题,运行几次后还会出现上述问题最后我把flutterSDK替换成最新的版本后在运行正常。...

2020-06-10 12:31:05 1575

原创 flutter 生成jks文件 获取sha1

debug版本 SHA1“C:\Program Files\Java\jdk1.8.0_191\bin\keytool.exe” -list -keystore debug.keystore找到这个目录下的keytool.exe 拖进cmd 然后加上-list -keystore debug.keystore发布版 SHA1“C:\Program Files\Java\jdk1.8.0_191\bin\keytool.exe” -list -v -keystore E:\key.jks生成j

2020-06-10 12:25:49 889 1

原创 flutter Android dependency 'androidx.core:core' has different version for the compile (1.0.0

标题 flutter Android dependency ‘androidx.core:core’ has different versionflutter 运行出现上述问题解决办法:https://github.com/flutter/flutter/issues/27254flutter应用程序中有kotlin支持,要解决此问题 要在android / build.gradle中更...

2019-11-25 15:57:52 5475

原创 Git提交到 github项目

Git提交到 github项目1.去官网下载git 进行安装2.注册github账号3.登录 github 在github repositories 新建一个4,。打开git 第一次提交的时候进入你要提交的 pods 项目cd pods如果你的项目还未提交过,需要执行初始化 Git 仓库不过我们创建 pods 时已经自动添加到 Git 仓库了,所以不需要这一步git i...

2019-09-27 10:54:17 126

原创 flutter编写并发布插件的记录

flutter编写并发布插件的记录编写插件:1.在Android studio中创建一个 flutter plug 的项目。![](https://img-blog.csdnimg.cn/20190830165729634.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly...

2019-08-30 17:20:50 3884

原创 Android butterknife遇见的版本问题 Attribute value must be constant

Android butterknife遇见的版本问题复制别的项目到 moudle中 ,里面就使用了butterknife 各项设置完成后 包也导入 但是最后还是在绑定id 的地方报 Attribute value must be constant的错误。找了很多大神写的 但是还是没办法解决 ,于是去:ButterKnife项目地址:https://github.com/JakeWha...

2019-08-27 15:25:51 3008

原创 Mac 运行flutter项目

Mac 运行flutter项目1.配置Mac VS Code Flutter环境https://www.jianshu.com/p/55a0472963682.Mac安装CocoaPodshttps://www.jianshu.com/p/cde521ea8afb3.注意使用的插件要符合两个平台(使用之前要确认确保两个平台)运行到苹果手机1.在VS code的终端运行 flutte...

2019-08-15 20:02:39 1457

原创 Mac配置flutter 开发环境

Mac配置flutter 开发环境1.https://flutter.io/setup-macos/ 下载flutter的SDK2.***打开终端 cd 到flutter的目录下***3.执行 sudo vim ~/.bash_profile4.进入bash_profile中后 加入以下 :export PATH=/usr/local/bin:/usr/bin:/bin:/usr/s...

2019-08-09 20:05:33 1355

转载 Flutter 视频列表的简单实现

Flutter 视频列表的简单实现视频的播放插件是用chewiechewie的使用:1. 引入 chewie: ^0.9.72. AndroidManifest.xml 里面加上 <uses-permission android:name="android.permission.INTERNET"/>3. ios里面的Runner->Info.plist->&...

2019-07-15 13:21:16 4461 4

原创 Flutter在主页面双击退出APP

Flutter在主页面双击退出APP.//定时器 Timer _timer; //上次点击时间 DateTime _lastPressedAt;//将Scaffold 作为WillPopScope的子控件WillPopScope( onWillPop: () async { if (_lastPressedAt == null || ...

2019-06-20 12:31:26 1955

原创 Flutter image_cropper按照文档上的配置后裁剪时出现闪退

image_cropper裁剪时出现闪退android { compileSdkVersion 28 lintOptions { disable 'InvalidPackage' } defaultConfig { // TODO: Specify your own unique Application ID (https://...

2019-06-18 10:31:42 2999 1

原创 flutter catcher插件的使用 全局异常捕获 并上传服务器

catcher插件的使用void main() { CatcherOptions debugOptions = CatcherOptions(PageReportMode(showStackTrace: true), [ConsoleHandler()]); CatcherOptions releaseOptions = CatcherOptions(PageRe...

2019-06-18 10:26:34 3001 2

原创 flutter oktoast插件的使用

oktoast插件的使用class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { return OKToast( textStyle: TextStyle(fontSize: 16, color: Colors.white), backgroun...

2019-06-18 10:16:00 906

转载 Flutter 广播

flutter 广播//订阅者回调签名typedef void EventCallback(arg); class EventBus { //私有构造函数 EventBus._internal(); //保存单例 static EventBus _singleton = new EventBus._internal(); //工厂构造函数 factory E...

2019-06-18 10:11:09 1333

原创 Flutter打包的安卓APK安装在高版本的手机上出现闪退

flutter打包的安卓APK安装在高版本的手机上出现闪退我遇见的闪退问题是因为 我打包的时候用的是flutter build apk 这个命令可以改成 flutter build apk --target-platform android-arm64这个命令打包试试。...

2019-05-13 13:59:19 4568

原创 Flutter 出现has different version for the compile (1.0.0) and runtime (1.0.1) classpath

androidx.core:core’ has different version for the compile (1.0.0) and runtime (1.0.1) classpathFlutter引入photo: ^0.3.3photo_manager: ^0.3.3后出现上述问题解决办法1.android/gradle/wrapper/gradle-wrapper.prope...

2019-04-19 15:20:13 5274

原创 Flutter Mapping values are not allowed here. Did you miss a colon earlier?

Mapping values are not allowed here. Did you miss a colon earlier?`出现类似上面类似的问题解决方法: # The following adds the Cupertino Icons font to your application. # Use with the CupertinoIcons class for iOS...

2019-04-08 20:09:03 2337

转载 APP版本更新,监听下载进度兼容6.0、7.0、8.0(二)

部分源码public class NumberProgressBar extends View { private Context mContext; /** * The max progress, default is 100 */ private int mMax = 100; /** * current progress, ...

2019-03-21 12:34:45 229

转载 APP版本更新,监听下载进度兼容6.0、7.0、8.0(一)

APP版本更新,监听下载进度兼容6.0、7.0、8.0重要提醒:https://www.jianshu.com/p/bb4cde6e88c6?tdsourcetag=s_pcqq_aiomsg更新主要分为以下几步:1.获取APP下载路径2.开启服务3.开启下载任务4.监听下载进度5.下载完成后注册并发送通知6.接收到通知安装APP1.此处是下载路径public class...

2019-03-21 12:30:15 406

原创 RecycleView上啦加载更多数据时候数据加载不出来

RecycleView刷新的时候列表数据会消失的问题问题描述:一个有图片视频 文字的聊天列表,每次下拉的时候 ,list。size数据不变,但是却显示不出来了。解决办法: list_recy.setLayoutManager(gridLayoutManager); if (list_recy.getRecycledViewPool() != null) { ...

2019-03-14 13:19:34 431

原创 IllegalArgumentException: You must not call setTag() on a view Glide is targeting

IllegalArgumentException: You must not call setTag() on a view Glide is targeting在Glide加载图片时出现的这个问题解决方案:1.在\res\values\文件夹下创建ids.xml文件&lt;?xml version="1.0" encoding="utf-8"?&gt;&lt;resources&gt;...

2019-03-11 21:54:35 541

转载 ·Android webscoket的简单用法记录

安卓webscoket简单用法记录//webspcket implementation 'com.neovisionaries:nv-websocket-client:2.2'//一个实体类public class CallBackBean { public Object target;//监听的标识 public boolean always;//是否删除监听 ...

2019-03-11 21:16:13 525

转载 Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar

Please add them to the annotationProcessor configuration. - butterknife-7.0.1.jar (com.jakewharton从网上下载的Demo运行起来出现Please add them to the annotationProcessor configuration. - butterknife-7.0.1.ja...

2019-03-08 19:56:24 5054

原创 记录一下Android回调机制(还在研究中)

Android回调简单理解外面调用回来执行“在TestB 类中定义了一个方法,这个方法中用到了一个接口和该接口中的抽象方法,但是抽象方法没有具体的实现,需要TestB 类去实现,TestB 类实现该方法后,它本身不会去调用该方法,而是传递给TestA类,供TestA类去调用”对上面这句话的理解:首先在B类中要有这个类似的方法:public interface Callbacktest {...

2019-03-08 19:55:51 191

转载 android25中开源的炫酷动画效果

https://blog.csdn.net/u013101864/article/details/51500136

2019-02-26 21:44:37 735

转载 android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor'

android-apt plugin is incompatible with the Android Gradle plugin. Please use ‘annotationProcessor’分三步走1.progect中类似于 classpath 'com.neenbedankt.gradle.plugins:android-apt:1.8' 这句话的 注释掉 2.app.g...

2019-02-26 21:43:55 6196

转载 android状态栏沉浸式(改变颜色)

android状态栏沉浸式(改变颜色)1.添加依赖implementation 'com.readystatesoftware.systembartint:systembartint:1.0.3'2.工具类public class StatusBarUtil { public static void setStatusBarLayoutStyle(Context context,...

2019-02-22 19:09:59 556

转载 android动态获取权限方法

安卓6.0以上动态权限申请1.设置一个权限的数组,将需要动态申请的权限写入2.创建页面时进行权限申请3.以下是动态申请的方法1.设置一个权限的数组,将需要动态申请的权限写入String[] permissions = new String[]{Manifest.permission.RECORD_AUDIO,Manifest.permission.READ_EXTERNAL_STORAGE,...

2019-02-22 10:21:18 1340

转载 android短视频压缩

短视频压缩:https://github.com/fishwjy/VideoCompressor

2019-02-22 10:21:00 1112 1

原创 android按钮的点击效果

Button按钮的点击效果&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&amp;gt;&amp;lt;!-- 获得焦点但未按下时的背景图片 --&amp;gt;&amp;lt;item android:drawable=&quot;@drawable/heart_2&quot; android:state_enabled=&amp

2019-02-22 10:20:50 575

原创 刷新list列表的某个属性

刷新列表的某个属性 public void updataFilter(int position) { for (int i = 0; i &amp;lt; list.size(); i++) { FilterBean bean = list.get(i); if (position == i) { bean....

2019-02-22 10:20:31 845

原创 RecycleView的一个基类适配器

RecycleView的一个基类适配器public abstract class CommonNewAdapter&amp;lt;T&amp;gt; extends RecyclerView.Adapter { private List&amp;lt;T&amp;gt; datas; private Context context; private int itemlayoutid; priva...

2019-02-22 10:20:11 215

原创 android studio 编译时出现 Build completed with 1 failures错误

# okhttp-keep class okhttp3.** { *; }-keep interface okhttp3.** { *; }-dontwarn okhttp3.**

2019-02-22 10:19:25 33566 2

原创 android拍照、选择照片以及得到照片的处理

拍照、选择照片以及获取到的照片的处理1.拍照//先开启拍照权限 public void applyWritePermission() { String[] permissions = {Manifest.permission.CAMERA, Manifest.permission.READ_EXTERNAL_STORAGE, Manifest.permissi...

2019-02-22 10:18:21 357

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除