- 博客(46)
- 资源 (3)
- 收藏
- 关注
原创 android studio无法下载依赖包问题
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。原文链接:https://blog.youkuaiyun.com/m0_37780940/article/details/116646620。第二步:修改flutter SDK中的flutter.gradle。新建Flutter项目Android项目后,点击运行出现报错!第一步:修改项目Android目录下的build.gradle。// google() 无法访问,使用阿里镜像。
2024-10-21 09:58:22
575
原创 manifest merger failed with multiple errors, see logs
作用是把我这个项目所有的依赖的三方SDK 不管他的 allowBackup 是啥全都替换成 android:allowBackup="false" ,保持跟我这个项目的配置一致。manifest merger failed with multiple errors, see logs报错,我这边是第三方依赖太多,合并清单文件出错了,解决办法是在。application节点下添加。
2023-06-29 16:51:26
157
原创 uniapp pdf.js不显示公章问题
如果协议上的签字和印章是在协议生成pdf文件后由第三方合成,前端依赖包,需要注释一段代码,否者在系统中查看协议pdf文件,会不显示印章文件路径:node_modules\pdfjs-dist\build\pdf.worker.js代码:_this2.setFlags(_util.AnnotationFlag.HIDDEN);...
2022-05-16 11:12:02
881
1
原创 android studio打开项目Gradle Download:https://jcenter加载慢
使用方法:build.gradlebuildscript { repositories { mavenLocal() google() // jcenter() maven{ url 'http://maven.aliyun.com/nexus/content/groups/public/'} }}allpr...
2019-11-23 15:19:01
398
原创 android Listview或GridView或RecyclerView在外层ScrollView下不能自适应怎么办?
用android.support.v4.widget.NestedScrollView代替外层ScrollView就可以自适应宽高了
2019-11-07 13:15:33
192
原创 Android转JsonObject中包含JsonArray
JSONObject obj = new JSONObject();JSONArray jsonArray = new JSONArray();if(null != typeBean){ try { obj.put("changeType", typeBean.changeType); obj.put("customerType", ""); ...
2019-10-24 09:48:25
337
原创 颜色不透明值显示
FFFFFF-不透明000000-透明不透明度 十六进制100% FF99% FC98% FA97% F796% F595% F294% F093% ED92% EB91% E890% E689% E388% E087% DE86% DB85% ...
2019-09-24 15:54:11
487
原创 设置透明状态栏
https://www.jianshu.com/p/5d43548c05ce动态设置代码间距public static void setMargins (View v, int l, int t, int r, int b) { if (v.getLayoutParams() instanceof ViewGroup.MarginLayoutParams) { ...
2019-09-24 15:15:20
515
原创 Android端集成融云遇到的坑(记录)
1.首先融云官网注册账号,获取Appkey 官网:https://developer.rongcloud.cn/ticket/info/bVoJWblCnRPgwhySL7o=2.下载IMKit和IMLib 导入module中,android3.0集成module报错请查看https://blog.youkuaiyun.com/qq_40072304/article/details/89316948...
2019-04-18 11:00:05
1683
原创 android studio 3.0导入module报错
保证module中的build.gradlebuildTypes 和app中的build.gradle完全一致,然后重新编译
2019-04-15 17:41:33
378
转载 各种依赖库(转载地址:https://blog.youkuaiyun.com/as89751)
抽屉菜单MaterialDrawer ★7337 - 安卓抽屉效果实现方案 Side-Menu.Android ★3865 - 创意边侧菜单 FlowingDrawer ★1744 - 向右滑动流动抽屉效果 SlidingRootNav ★1338 - 仿DrawerLayout的ViewGroup FantasySlide ★1049 - 单手势滑出侧边栏与选择菜单 Floatin...
2018-09-05 16:38:18
15898
1
原创 图片的三级缓存封装类+MD5加密
package com.example.administrator.bwft3;import android.content.Context;import android.graphics.Bitmap;import android.graphics.BitmapFactory;import android.os.Environment;import android.os.Handle...
2018-04-12 08:52:47
212
原创 横竖屏切换不同布局的方法
protected void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); int orientation = getResources().getConfiguration().orientation; if (orientation =...
2018-04-07 17:38:00
1156
原创 解决程序崩溃处理ANR
首先导入依赖 compile 'com.wanjian:cockroach:0.0.5'写入初始化的类Cockroach.install(new Cockroach.ExceptionHandler() { // handlerException内部建议手动try{ 你的异常处理逻辑 }catch(Throwable e){ } ,以防han
2018-02-03 16:19:40
1123
原创 完整版的设置夜间模式
activity_xmlxml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:layout_height="match_pa
2018-01-30 20:20:30
1590
原创 Ijkplayer最简单的视频播放
1.首先导入依赖包:compile 'com.dou361.ijkplayer:jjdxm-ijkplayer:1.0.5'2.如果全屏播放就不用粘贴布局了;如果是屏幕中一小块的话就粘贴这个布局: include layout="@layout/simple_player_view_player" android:layout_width="
2018-01-18 09:36:30
314
原创 Rxjava商品详情+购物车
添加依赖compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.squareup.retrofit2:converter-gson:2.3.0'compile 'io.reactivex.rxjava2:rxandroid:2.0.1'compile 'io.reactivex.rxjava2:rxjava:2.1.7'
2018-01-08 19:26:31
524
原创 购物车
布局文件xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:layout_width="match_parent" android:orientation="vertical" andr
2018-01-07 21:04:19
1171
原创 rxjava小项目
//添加依赖compile 'com.squareup.retrofit2:retrofit:2.3.0'compile 'com.squareup.retrofit2:converter-gson:2.3.0'compile 'io.reactivex.rxjava2:rxandroid:2.0.1'compile 'io.reactivex.rxjava2:rxjava:2.1.7'
2018-01-07 20:41:16
290
原创 RXjava和retrofit网络请求Recyclerview
导入依赖,加入网络权限compile 'com.android.support:appcompat-v7:26.+'compile 'com.android.support.constraint:constraint-layout:1.0.2'compile 'com.facebook.fresco:fresco:0.12.0'testCompile 'junit:junit:4.1
2017-12-27 19:54:26
227
原创 展示接口中的商品,加入购物车
导入依赖compile 'com.google.code.gson:gson:2.6.1'compile 'com.youth.banner:banner:1.4.10'compile 'com.squareup.okhttp3:okhttp:3.1.2'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'c
2017-12-20 15:52:51
541
原创 购物车二级列表演示
设置点击进入购物车之后的代码首先添加依赖compile 'com.github.bumptech.glide:glide:3.5.2'compile 'com.squareup.okhttp3:okhttp:3.9.0'compile 'com.squareup.okhttp3:logging-interceptor:3.9.0'compile 'com.google
2017-12-19 19:49:33
212
原创 XRecyclerview mvpgson网络解析
//导入依赖compile 'com.squareup.okio:okio:1.5.0'compile 'com.squareup.okhttp3:okhttp:3.2.0'compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'compile 'com.google.code.gson:gson:2.8.2'compile
2017-12-19 19:13:30
228
原创 androidstudio需要的权限依赖
Recyclerview框boderleft android:width="0.02dp" android:color="#e2dede" />compile 'com.xhb:xbanner:1.2.2'compile 'com.squareup.retrofit2:retrofit:2.3.0'
2017-12-13 09:50:43
547
原创 MVP注册
//定义注册路径regpublic class ProApi { public static final String LOGIN = "http://120.27.23.105/user/login"; public static final String REG = "http://120.27.23.105/user/reg";}在登陆login下面在创建
2017-12-12 11:55:08
192
原创 mvp登陆
一:导入依赖compile 'com.squareup.okio:okio:1.5.0'compile 'com.squareup.okhttp3:okhttp:3.2.0'compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'compile 'com.google.code.gson:gson:2.8.2'compile 'c
2017-12-10 20:21:00
274
原创 点击切换QQ(第三方)登陆
http://wiki.open.qq.com/wiki/mobile/SDK%E4%B8%8B%E8%BD%BD首先导入lib包然后在全局导入xml version="1.0" encoding="utf-8"?>manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.
2017-12-07 20:15:18
293
原创 Recicleview+OKhttp
首先导入依赖compile 'com.android.support.constraint:constraint-layout:1.0.2'testCompile 'junit:junit:4.12'添加网络权限uses-permission android:name="android.permission.INTERNET">uses-permission>设置RecyclerVie
2017-12-06 18:59:05
251
原创 android二维码扫描
//添加依赖compile 'cn.yipianfengye.android:zxing-library:2.1'testCompile 'junit:junit:4.12'//布局xml version="1.0" encoding="utf-8"?>LinearLayout xmlns:android="http://schemas.android.com/ap
2017-12-05 15:24:55
189
原创 网络回调
//添加依赖compile 'com.squareup.okio:okio:1.5.0'compile 'com.squareup.okhttp3:okhttp:3.2.0'compile 'com.squareup.okhttp3:logging-interceptor:3.4.1'compile 'com.google.code.gson:gson:2.8.2'compile 'co
2017-12-03 20:48:23
342
原创 RecyclerView
//布局android.support.v7.widget.RecyclerView android:id="@+id/recycleView" android:layout_width="match_parent" android:layout_height="wrap_content">android.support.v7.widget.RecyclerVie
2017-12-03 18:42:56
130
原创 android自定义view画图
Main方法package wuhao.bwei.com.wuhao20171130;import android.graphics.Paint;import android.support.v7.app.AppCompatActivity;import android.os.Bundle;import android.widget.LinearLayout;public cla
2017-11-30 18:20:01
249
原创 批量删除
$scope.delAll = function(){ $scope.szz = []; $scope.trs = []; var dx = $("input[id='checks']");
2017-11-23 09:56:57
152
原创 全选
//全选 $scope.quanxuan = function(){ var dx = $("input[id='checks']"); for(var i = 0;i var isno = dx[i].checked;
2017-11-23 09:20:56
157
原创 HBuilder ng-的编程回车输入下方显示不重复
日考题目 作者:offline 时间:2017-11-10 描述: 键盘按下事件----监听的是回车 --> {{x}}
2017-11-12 18:25:06
520
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人