- 博客(85)
- 收藏
- 关注
原创 IOS添加三方库冲突了
在Build Settings->Other link flags中添加-dead_strip,如果Other link flags中有-all_load与-force_load则删掉,只填-dead_strip。
2023-12-13 16:07:03
253
原创 Android项目升级到AndroidX
提示备份、然后执行do refactor。31报错了就用30.0.0了。然后各种导包各种全局替换。修改gradle版本。项目和模块都改到28。
2023-11-07 16:53:06
573
原创 复制现有项目为新项目
开发好的项目想复制一份更换名称和包名变成一个新项目1.将项目复制一份 更换文件名称2.用studio打开新项目3.点击包名重新命名4.项目中搜索一下有没有用到之前包名的地方替换一下5.更改为新项目名称,sysnNow一下就好了。...
2021-10-12 15:03:04
554
原创 DevEco Studio 没有HVD Manager
最近换了电脑重新安装 DevEco Studio 安装之后在 tools中没有HVD Manager了 出现Problems found loading plugins: Plugin "Hvd Support" was not loaded: required plugin "Remote Device (China)" is disabled. 没有找到插件 被禁用了把这个选上这回有了...
2020-11-13 09:35:25
2112
原创 svn clean up 报错
Error:Error performing cleanup for 'E:\ASworkSpace2.3\MyAssistant': svn: E155009: Failed to run the WC DB work queue associated with 'E:\ASworkSpace2.3\MyAssistant', work item 40708 (file-install buil...
2020-03-23 15:10:51
817
原创 配置微信小程序支付和友盟jar包重复
Error:Execution failed for task ':dmHybridLive:transformClassesWithJarMergingForNewUserRelease'. > com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: c...
2020-03-19 11:34:23
368
原创 Android Studio 配置NDK
Error:No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
2020-03-18 16:20:08
636
原创 Android 9.0使用https
<application android:allowBackup="true" android:icon="${app_icon}" android:label="@string/app_name" android:theme="@style/AppThemeAnimation" android:networkSecurityConfig="@xml...
2019-11-18 15:37:35
1387
原创 app跳转小程序与返回参数
compile 'com.tencent.mm.opensdk:wechat-sdk-android-with-mta:+'跳转小程序处理返回参数但是我这里报错ConstantsAPI.COMMAND_LAUNCH_WX_MINIPROGRAM找不到这个常量 不知道为什么最后清单中<activity android:name="${app...
2019-11-08 16:10:22
840
原创 md5 sha1
或者keytool -list -v -keystore "D:\ASworkSpace2.3\MyAssistant\app\keystore.jks"
2019-07-05 09:37:58
131
原创 HTTP FAILED: java.net.UnknownServiceException: CLEARTEXT communication to 192.168.1.140 not permitte
<?xml version="1.0" encoding="utf-8"?><network-security-config> <base-config cleartextTrafficPermitted="true" /></network-security-config>
2019-07-05 09:02:17
3792
原创 8.0logo适配
Android Studio3.0已经为我们做好8.0应用图标适配了主要是看mipmap-anydpi-v26目录,它里面会有一个xml文件,就是我们的logo图片文件。那么它是如何生成的呢?操作:ctrl+shift+A 输入image asset,打开Asset Studio编辑器,编辑我们的logo图片。...
2019-06-26 09:48:27
228
原创 Fragment中使用onActivityResult
在宿主activity中@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) { Fragment fm = getSupportFragmentManager().findFragmentByTag("mMyFragment"); fm.onActivi...
2019-05-28 08:44:13
1832
3
原创 增加library的时候出现add 'tools:replace="android:label"' to <application> element at AndroidManifest.xml:64
在项目的清单中增加
2019-01-09 13:53:05
933
原创 Error:Program type already present: androidx.versionedparcelable.NonParcelField
今天项目添加一个module,先是出现Error:D:\ASworkSpace2.3\AndroidMaster\app\src\main\AndroidManifest.xml:22:18-91 Error: Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFac...
2018-12-20 14:32:19
17631
9
转载 Scrollview 里面嵌套了Edittext 滑动问题
Edittext 里面有内容,edittext里面内容滑到底部Scrollview滑动,edittext里面内容滑到顶部Scrollview滑动,edittext里面没有内容Scrollview滑动 @SuppressLint("AppCompatCustomView")public class MyEditText extends EditText { private f...
2018-08-28 09:07:54
644
原创 Throwing new exception 'length=105; index=1075' with unexpected pending exception:
Throwing new exception 'length=105; index=1075' with unexpected pending exception: java.lang.ArrayIndexOutOfBoundsException: length=105; index=1075某些小米手机6.+ 运行报错,7.+手机可以正常运行,代码没有问题,其实是Retrofit2.0 和An...
2018-08-23 10:31:54
925
1
原创 Retrofit 2.0 rxJava2.0上传图片
和参数一起 单个图片(图片为空)MultipartBody.Part body;String descriptionString;RequestBody description;if (mPicListfile != null && mPicListfile.size() == 1) { //构建要上传的文件 File file = mPicListfile...
2018-06-28 14:35:19
660
原创 Fragment onActivityResult 收不到
在Activity中@Overrideprotected void onActivityResult(int requestCode, int resultCode, Intent data) { Fragment fm = getSupportFragmentManager().findFragmentByTag("myFragment"); fm.onActivity
2017-12-12 15:11:27
443
原创 Activity singleTask Intent传值收不到
@Overrideprotected void onNewIntent(Intent intent) { super.onNewIntent(intent); Log.e("tag", "onNewINtent执行了"); setIntent(intent); tag=intent.getStringExtra("tag"); if (!StringUti
2017-12-12 15:09:38
214
原创 自定义开关
/** * Created by cy on 2017/9/11. *///自定义开关控件public class MySwitchButton extends View { //开关圆圈的按钮 private Bitmap swithSilder; //获取的开关圆圈的宽度 private int swithWidth; //开关圆圈在x轴上的位
2017-09-11 19:56:48
224
原创 fragment里面使用tabLayout 和viewpager里面多个fragment出现第二个fragment里面viewpager里面的fragment不出现
List titles = new ArrayList; titles.add("全部"); titles.add("待发货"); titles.add("已发货"); titles.add("待付款"); titles.add("退款"); titles.add("交易成功"); fr
2017-09-04 10:02:02
554
原创 TabLayout 字体个数不同 大小不同
<android.support.design.widget.TabLayout android:id="@+id/tabLayout" android:layout_width="match_parent" android:layout_height="50dp" app:tabIndicatorColor="@color/zitilan" app:tab
2017-09-02 16:41:51
3710
原创 CoordinatorLayout与NestedScrollView嵌套RecyclerView滑动问题
上滑的时候RecyclerView上滑了,但是并没有与头部也就是AppBarLayout产生联动,头部没有上拉了。这个问题的解决方法是调用RecyclerView中的setNestedScrollingEnabled(false);让RecyclerView顺滑滑动。
2017-08-15 16:21:28
3344
转载 ORM数据库DBFlow入门
DBFlow,综合了 ActiveAndroid, Schematic, Ollie,Sprinkles 等库的优点。同时不是基于反射,所以性能也是非常高,效率紧跟greenDAO其后。基于注解,使用apt技术,在编译过程中生成操作类,使用方式和ActiveAndroid高度相似,使用简单。特性:1、无缝支持多个数据库;2、使用annotation processing提高速度;3
2017-08-10 20:10:29
548
转载 ExpandableListView 删除group notifyDataSetChanged child重复
用ExpandableListView 出现的问题。ExpandableListView 在第一次加载数据的时候,数据可以正常显示,但是当我删除上一个group的时候,然后调用 notifyDataSetChanged(); 发现最后一个group 的 childView 重复了一个,折腾了很久了,解决不了(因为已经知道,是控件本身的问题), 后续到谷歌官网查看,没找到有用信息,再到github上
2017-07-29 15:36:09
507
转载 滑动悬浮效果
LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:id="@+id/cotainer" android:layout_width="fill_parent" android:layout_height="match_parent" android:backg
2017-07-23 18:19:09
233
转载 滑动滚出页面
public class ScrollToTopBehavior extends CoordinatorLayout.BehaviorView>{ int offsetTotal = 0; boolean scrolling = false; public ScrollToTopBehavior(Context context, AttributeSet attrs) {
2017-07-23 18:15:18
221
原创 ios下拉效果滑动滚出页面
xml version="1.0" encoding="utf-8"?>xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" android:layout_width="match_parent" android:l
2017-07-23 18:12:35
1682
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人