
android bug
android bug
安果移不动
精通Android,Swift,Flutter,Python,Php,按键精灵,易语言。曾为华为录制精品课程,拥有资质:按键精灵顶级证书;
产品秀:https://www.anguomob.com
B站:https://space.bilibili.com/482453235
展开
-
ype safety: Potential heap pollution via varargs parameter key (67109670 at line 29).
报错代码上面添加注解 @SuppressWarnings({"unchecked", "varargs"})使用到的方法同样添加注解@SafeVarargs@SafeVarargs@Overridepublic final boolean deleteByKeyInTx(@NotNull K... key) { try { getAbstractDao().deleteByKeyInTx(key); } catch (SQLiteEx..原创 2021-09-19 17:04:50 · 419 阅读 · 0 评论 -
Gradle plugin requires Java 11 to run. You are currently using Java 1.8.
A problem occurred evaluating project ':app'.> Failed to apply plugin 'com.android.internal.application'. > Android Gradle plugin requires Java 11 to run. You are currently using Java 1.8. You can try some of the following options: - ...原创 2021-08-28 13:10:36 · 1178 阅读 · 4 评论 -
最新Android Studio解决> No cached version of org.javailable for offline mode.
问题A problem occurred configuring root project 'kaikeba'.> Could not resolve all artifacts for configuration ':classpath'. > Could not resolve org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.20. Required by: project : > No.原创 2021-08-27 11:00:18 · 1846 阅读 · 0 评论 -
蓝湖下载的切图比较模糊
作为一名优秀的开发可能会遇到蓝湖下载切图模糊,但是找产品产品又怼我说图是矢量图不模糊。。。这。。就牵扯到一个小细节了。。蓝湖要用设计的地方的切图 而非极速版 极速版的图可能会糊掉...原创 2021-08-26 18:07:08 · 2922 阅读 · 0 评论 -
Caused by: java.lang.reflect.InvocationTargetExceptio
错误如下Lint infrastructure errorCaused by: java.lang.reflect.InvocationTargetException at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethod...原创 2021-07-05 14:30:21 · 5881 阅读 · 1 评论 -
Android 项目报红
背景导入了FlutterBoost flutterBoost源码爆红。但是运行正常。。这说明本身是没有问题的。。分明是没有错误的 类都存在。但是就是爆红。。。。可以关闭项目后删除这两个文件夹后重新打开项目...原创 2021-06-22 13:43:36 · 463 阅读 · 0 评论 -
Expected adapter item count: 0, found: 1 Pager id:
FragmentPagerAdapter 必须在设置数据后再 setAdapter而不是 先设置Adapter 然后再调用notifyDataSetChanged原创 2021-05-20 18:07:36 · 920 阅读 · 0 评论 -
android studio apk签名不上
妈的神奇。签名签不上。。配置都是一样的。。后来经过注释仔细的对比发现minSdkVersion 24不行 死活签名不上 即使配置了signingConfig signingConfigs.release 而且配置的签名数据在另外的一个app上面毫无破绽。但是。。降低一点点 是不一样的世界minSdkVersion 23验证是否签名成功直接提交到百度应用市场 提示(没有签名)或者使用命令行jarsigner -verify -certs -v...原创 2021-04-23 11:59:04 · 707 阅读 · 1 评论 -
腾讯x5无法全屏播放视频
之前是用的Context现在改为Activity之后就可以点击全屏了更多高级用法可以参考官方文档:https://x5.tencent.com/tbs/technical.html#/detail/sdk/1/a1f54118-e2b7-43df-8189-8824e4ce5970参考博客:https://www.jianshu.com/p/ac803bba5db2...原创 2021-02-20 11:40:11 · 1201 阅读 · 0 评论 -
Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your 解决
ava.lang.IllegalStateException: This Activity already has an action bar supplied by the window decor. Do not request Window.FEATURE_SUPPORT_ACTION_BAR and set windowActionBar to false in your theme to use a Toolbar instead.2021-02-05 23:38:26.891 18391-18原创 2021-02-06 00:37:05 · 773 阅读 · 2 评论 -
R8: Missing class: javax.el.FunctionMapper R8: Missing class: org.springframework.beans.factory.xml.
R8没有混淆导致的。。。去掉混淆即可或者添加对应的miss class上面的混淆。-dontwarn com.xxx.xxx.xxxx原创 2021-02-03 14:43:47 · 1106 阅读 · 0 评论 -
ClassNotFoundException: Didn‘t find class “android.view.x“ on path:
背景:穿山甲广告找不到广告资源原因发现gradle里面有一句shrinkResources true删除这个属性 或者改为Faler原创 2021-02-01 15:28:30 · 583 阅读 · 0 评论 -
Android Studio 4.1 不报错 代码不提示 运行时错误看不到
升级4.1之后studio变成了文本编辑器了。。我tmd不报错解决删除这个目录重启C:\Users\liuan\AppData\Roaming\Google\AndroidStudio4.1\plugins删除重启后看这个高亮度的代码需要插件在自己重新下载 md无敌...原创 2020-10-24 17:42:20 · 4456 阅读 · 27 评论 -
Android 出现应用未安装
当前versionCode 不能=-1我这是为了测试自动升级改为 android:versionCode="0" android:versionName="0.9"就正常了其余可能的原因签名不正确用了debug签名手机的安全设置,不允许安装未知来源应用。这个会提示你设置的...原创 2020-10-20 15:48:22 · 470 阅读 · 0 评论 -
java.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Ja【已解决】
Mac 问题Starting a Gradle Daemon, 1 incompatible Daemon could not be reused, use --status for detailsjava.lang.NoClassDefFoundError: Could not initialize class org.codehaus.groovy.vmplugin.v7.Java7 at org.codehaus.groovy.vmplugin.VMPluginFactory.原创 2020-07-13 14:36:03 · 17968 阅读 · 1 评论 -
onRequestPermissionsResult 无法回调的问题
原因:混淆onRequestPermissionsResult被mapping转换了。这个时候需要keep这个方法,如果你不想整个Activity被keep的话。-keepclassmembers class com.tt.main.MainActivity { public void onRequestPermissionsResult(int,java.lang.String[],int[]);}如果不keep的,mapping文件可能是void onRequestPer原创 2020-06-10 19:33:17 · 991 阅读 · 0 评论 -
关于Static interface methods are only supported starting with Android N (--min-api 24)错误怎么修改
app->build.gradle android节点内添加 compileOptions { sourceCompatibility JavaVersion.VERSION_1_8 targetCompatibility JavaVersion.VERSION_1_8 }原创 2020-05-31 22:35:32 · 230 阅读 · 0 评论 -
is not accessible from java.lang.Class android.app.AppComponentFactory
public class MainActivity extends BaseActivity { @Override protected void onCreate(@Nullable Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView(R.layout.main_layout); }}少写了一个public原创 2020-05-29 18:36:53 · 1438 阅读 · 0 评论 -
: Could not download okio.jar (com.squareup.okio:okio:1.0.0)
项目级别build.gradlebuildscript { repositories { mavenCentral() jcenter() google() }allprojects { repositories { mavenCentral() google() jcenter() }}原创 2020-05-27 00:43:18 · 1517 阅读 · 0 评论 -
Type BuildConfig is defined multiple times
check if both modules have a same package name检查不同的程序块里面有一样的包名。。修改其中一个即可。注意使用 批量替换 时应当注意不要全部替换了。。不然还会是一样 。。原创 2020-05-21 11:29:06 · 14209 阅读 · 4 评论 -
Android解惑 - 为什么要用Fragment.setArguments(Bundle bundle)来传递参数
ragment在Android3.0开始提供,并且在兼容包中也提供了Fragment特性的支持。Fragment的推出让我们编写和管理用户界面更快捷更方便了。但当我们实例化自定义Fragment时,为什么官方推荐Fragment.setArguments(Bundle bundle)这种方式来传递参数,而不推荐通过构造方法直接来传递参数呢?为了弄清这个问题,我们可以做一个测试,分别测试下这两种...原创 2020-05-19 10:58:40 · 653 阅读 · 0 评论 -
Android dependency ‘xxx‘ has different version for the compile错误解决步骤
在项目根目录下执行如下命令,将依赖导出到文件:./gradlew app:dependencies > log_depend.txt打开上面的log_depend.txt文件,然后搜索查找版本冲突的库,CTRL+Fandroidx.media:medi根据层级判断出来在我创建activity、的时候他自动在build.gradle中添加了依赖删...原创 2020-04-28 17:02:25 · 1315 阅读 · 0 评论 -
android - 安卓如何限制依赖的包的权限?
权限后面加tools:node="remove"<!-- 移除应用锁不需要的第三方jar 权限--> <uses-permission android:name="android.permission.READ_SMS" tools:node="remove"/> <uses-permission android:name="and...原创 2020-04-13 16:44:35 · 926 阅读 · 0 评论 -
by: org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveExceptio
更新项目级别build.gradle文件换成国内镜像maven { url 'http://maven.aliyun.com/nexus/content/groups/public/'}maven { url'https://maven.aliyun.com/repository/public/' }maven { url'https://maven.aliyun.com/repos...原创 2020-04-06 11:11:05 · 626 阅读 · 0 评论 -
overridePendingTransition 无效
此方法添加在的页面会被进行页面的转场。overridePendingTransition(0,0);Intent intent = new Intent(context, TestActivity.class);context.startActivity(intent);则进入TestActivity就会木有动画。。中间也没有闪烁...原创 2020-03-28 16:13:51 · 896 阅读 · 3 评论 -
Manifest merger failed : Attribute application@appComponentFactory value=(android.sup
清单文件 <application ... android:appComponentFactory="" tools:replace="android:appComponentFactory">原创 2020-03-21 15:14:37 · 839 阅读 · 0 评论 -
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES: ... has no certificates at entry AndroidManifest.xml]
没有对release 版本打包即可解决原创 2019-07-03 16:25:04 · 3325 阅读 · 1 评论 -
新浪微博error:redirect_uri_mismatch的解决方法
解决方法:到新浪微博注册应用的地方填上回调地址,然后将代码中的回调地址修改成和新浪微博开放平台里一样即可,见下图iosandroid这个域名可以随便写 只要统一即可...原创 2019-07-03 15:24:26 · 533 阅读 · 0 评论 -
【已解决】Execution failed for task ':app:lint'
app 项目的build.gradle下的android节点下 lintOptions { abortOnError false; }原创 2019-07-01 15:40:19 · 9457 阅读 · 0 评论 -
WebView加载https和http混合,导致图片不显示问题
场景复现:在Android5.0 以及以上的系统,当WebView加载的链接为Https开头,但是链接里面的内容,比如图片为Http链接,这时候,图片就会加载不出来原因:从Android5.0开始,WebView默认不支持同时加载Https和Http混合模式。知识储备:从Android5.0以后,当一个安全的站点(https)去加载一个非安全的站点(http)时,需要配置Web...原创 2019-05-30 19:29:37 · 2083 阅读 · 0 评论 -
解决Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
Android Studio导入Eclipse项目报错Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.的解决办法错误内容错误原因因为Eclipse所使用的ADT插件已经不再更新,所以从Eclipse导出的项目使用的是旧版本Gradle插件,而...原创 2019-05-24 10:24:21 · 645 阅读 · 0 评论 -
com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;
:Cause: com.novoda.gradle.release.AndroidLibrary$LibraryUsage.getDependencyConstraints()Ljava/util/Set;解决方案:1.修改gradle/wrapper/ gradle-wrapper.properties 版本号 我先前是4.6.改为4.4. distributionUrl=https://...原创 2019-05-18 15:29:10 · 658 阅读 · 0 评论 -
java.lang.IllegalStateException: Expected BEGIN_ARRAY but was BEGIN_OBJECT at line 1 column 2 path
我的出现这个问题的原因是因为我有一堆城市数据[ { "code": "101010200", "label": "北京", "value": 1 }, { "code": "101020200", "label": "上海", "value": 2 }, { "code": "101030200", "...原创 2019-05-18 15:03:42 · 7339 阅读 · 0 评论 -
/com.mob.tools.MobUIShell}; have you declared this activity in your AndroidManifest.xml?
gradle 集成不用添加清单文件 so为啥会出现这样的问题呢debug 版本导致的 换成release版本后没有问题原创 2019-05-16 17:39:12 · 1548 阅读 · 0 评论 -
No cached version available for offline mode 解决方法
原因是之前为了提高编译速度,在Gradle设置选项中开启了Offline work模式,解决办法关闭此选项:原创 2019-05-16 17:27:40 · 6666 阅读 · 0 评论 -
no versions of com.mob:MobTools are available.
我是模块化开发module和使用到的有关联的module都加一下mob的引用“apply plugin: 'com.mob.sdk'”就可以解决这个问题原创 2019-05-16 17:26:33 · 723 阅读 · 0 评论 -
Could not find any matches for com.mob:MobTools:+ as no versions of com.mob:MobTools are available.
模块化项目集成的时候报这个错误在主model下 和使用到的model上面都加上这句话就ok了apply plugin: 'com.mob.sdk'原创 2019-05-10 16:41:40 · 5425 阅读 · 1 评论 -
Android导入新项目时候报错 Error:Could not find bundletool.jar(com.android.tools.build:bundletool:0.1.0......
改成这个com.android.tools.build:gradle back to 3.0.1 就好了原创 2019-05-05 18:28:01 · 763 阅读 · 0 评论 -
ARouter there's no route matched解决方法
两种情况会导致这个bug发生。1 路径重复 2 未添加依赖现在的问题已经很明显了,不同的module使用了相同的一级路径,在Arouter第一次寻找到route的时候便删除了这个一级路径的group,因为一级路径的重复,再调用另一个module的一级路径是”app”的路由时,由于之前Warehouse.groupsIndex已经删除,便导致了there’s no route matche...原创 2019-05-05 15:54:56 · 3893 阅读 · 0 评论 -
Error:(27, 20) Failed to resolve: com.github.lzyzsd:jsbridge:1.0.4
原创 2019-04-29 18:01:39 · 1459 阅读 · 0 评论