Android studio日常错误
jian11058
信义著于四海,匡扶汉室
展开
-
Could not resolve all files for configuration ‘:app:debugUnitTestCompileClasspath‘.
Android studio搭建java main方法,运行时报错,解决:在project下的build.gradle中检查配置:// Top-level build file where you can add configuration options common to all sub-projects/modules.buildscript { repositories { google() jcenter() } dependen原创 2022-05-18 10:31:43 · 1052 阅读 · 0 评论 -
Android 微信授权报错:invalid appkey
项目包名更替,微信所有环境都没动,就是变了包名,变动前可以正常授权登陆,变动之后,就授权失败;解决:需要将2个类:WXEntryActivity、WXPayEntryActivity存放到与包名(build中的appid的路径)一致的路径,...原创 2022-04-01 10:32:30 · 2699 阅读 · 0 评论 -
The layout “activity_articles“ in layout has no declaration in the base layout folder; this can lead
The layout "activity_articles" in layout has no declaration in the base layout folder; this can lead to crashes when the resource is queried in a configuration that does not match this qualifier解决方法:直接重启Android studio原创 2022-03-25 16:50:02 · 2261 阅读 · 3 评论 -
When using `setHasFixedSize() in an RecyclerView, wrap_content cannot be used as a value for size in
如果在该目录下,没有找到和日志说的情况,那么你可以看看自己项目里,有没有和这里的recycleview的id一样,如果有一样 的id,那就去看看其他id的情况;因为项目是老项目,我后来接手负责的,我习惯命名的id是唯一的,所以之前没有碰到这样的情况Android studio报错:Lint found fatal errors while assembling a release target.然后找到lint的错误日志,目录为:项目录 >> app >> b原创 2022-03-10 15:25:42 · 4203 阅读 · 0 评论 -
Duplicate class org.intellij.lang.annotations.Flow found in modules annotations-13.0.jar (org.jetbra
在build.gradle(app)中配置: configurations { cleanedAnnotations compile.exclude group: 'org.jetbrains' , module:'annotations' }原创 2021-12-23 18:24:22 · 1864 阅读 · 0 评论 -
Attempt to invoke virtual method ‘void android.app.ActionBar.hide()‘ on a null object reference
activity需要继承:AppCompactActivity;获取bar:getSupportActionBar();原创 2021-05-18 11:34:32 · 397 阅读 · 0 评论 -
or increase this project‘s minSdk version to at least 21, or use tools:overrideLibrary=“com.bun.mi
报错如下:or increase this project's minSdk version to at least 21, or use tools:overrideLibrary="com.bun.miitmdid" to force usage (may lead to runtime failures)解决:直接在Android Manifast.xml中,在和权限平级的括号中加入: <uses-permission android:...原创 2021-05-17 16:48:37 · 1045 阅读 · 0 评论 -
Could not find com.github.hackware1993:MagicIndicator:1.5.0./Received status code 502 from server...
在做依赖build时,因为这个带来的错误;//viewpager的导航条扩展implementation 'com.github.hackware1993:MagicIndicator:1.5.0'解决:在repositories中加入:maven { url "https://jitpack.io"}// Top-level build file where you can add configuration options common to all su...原创 2021-05-11 14:06:14 · 16894 阅读 · 31 评论 -
Unable to resolve dependency for ‘:app@debug/compileClasspath‘: Could not find any version that matc
Unable to resolve dependency for ':app@debug/compileClasspath': Could not find any version that matches com.android.support:appcompat-v7:29.+.Open FileShow DetailsUnable to resolve dependency for ':app@debugAndroidTest/compileClasspath': Could not fi.原创 2020-07-09 10:34:25 · 805 阅读 · 0 评论 -
Failed to notify build listener.
1、表示将要打开的项目grade版本大于本机版本;在android studio 中的terminal 中输入 gradlew -v,可见此项目的grade版本,自己Android studio版本可在电脑中Android studio文件下看到grade文件夹,我的为gradle-4.6;解决:在Android studio中,修改proguard-rules.pro文件,“”d...原创 2020-01-04 18:52:52 · 2752 阅读 · 0 评论