报错
柳柳柳柳柳柳
安卓开发
展开
-
android.view.WindowLeaked: Activity XXX has leaked window DecorView@9801a78[XXX] that was originall
首先这个问题是窗体泄露,也就是说你可能是有dialog或者popupwinow在切屏的时候没有很好的做处理。原创 2022-11-29 14:30:10 · 1465 阅读 · 0 评论 -
NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics
NullPointerException: Parameter specified as non-null is null: method kotlin.jvm.internal.Intrinsics原创 2022-11-07 11:10:30 · 1093 阅读 · 0 评论 -
序列化的时候有null对象导致报错
序列化的时候有null对象导致报错Parcelable传值,些许字段为空导致intent.getParcelableExtra报错原创 2022-07-04 16:39:15 · 881 阅读 · 0 评论 -
LifecycleOwner xx is attempting to register while current state is RESUMED. LifecycleOwners must cal
报错:LifecycleOwner xx is attempting to register while current state is RESUMED. LifecycleOwners must call register before they are STARTED.原创 2022-06-28 16:40:34 · 2151 阅读 · 0 评论 -
Build was configured to prefer settings repositories over project repositories but repository ‘mave
报错原因,未引用maven库于是在build.gradle里加allprojects { repositories {...}}还是不对,最后查阅了资料最新得放在setting.gradle当中dependencyResolutionManagement { repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS) repositories { ...原创 2022-02-16 15:28:51 · 1669 阅读 · 0 评论 -
Android Studio(AS) 升级4.1的一些错误解决方式
目录1.修改变量无颜色提示,不自动导包,无报错提示解决方式:2.Plugin Error: Plugin "GsonFormat" is incompatible (supported only in IntelliJ IDEA).解决方式:1.修改变量无颜色提示,不自动导包,无报错提示解决方式:删除黄油刀(butterKnife)插件使用viewbinding代替2.Plugin Error: Plugin "GsonFormat" is incompatibl..原创 2021-03-16 11:44:23 · 620 阅读 · 0 评论 -
Could not get unknown property ‘x‘ for extension ‘x‘ of type com.android.build.gradle.LibraryExtensi
Could not get unknown property 'x' for extension 'x' of type com.android.build.gradle.LibraryExtension.原因是module中引用了公用的gradle但是根目录下没有applyfrom这个公用的gradle导致使用失败解决方式:apply from: "xx.gradle" //加上这句 xx代表你的公用gradle 一般引用别人的module里可以找到buildscript { ...原创 2021-03-09 16:17:14 · 3986 阅读 · 2 评论 -
Error launching Studio If you already have a 64-bit JDK installed, define a JAVA HOME variable in..
ErrorlaunchingStudioIfyoualreadyhavea64-bitJDKinstalled,defineaJAVAHOMEvariableinComputer>SystemProperties>SystemSettings>EnvironmentVariables.FailedtocreateJVM.JVMPath:XX在这个路径下:C:\Users\XX\AppData\Roaming,XX...原创 2021-02-26 10:36:33 · 1259 阅读 · 3 评论 -
Caused by: java.lang.NoSuchMethodError
AndroidRuntime: Caused by: java.lang.NoSuchMethodError: No static method metafactory(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodT原创 2021-01-04 16:13:12 · 4239 阅读 · 1 评论 -
Android Studio 打包错误org.gradle.api.InvalidUserDataException: Keystore file
gradle.propertiesSTORE_PASSWORD = store密码KEY_PASSWORD = key密码KEY_ALIAS = key aliasmoudle中的build.gradle写在android下 signingConfigs { debug { try { storeFile file("keystore地址") storePassword STORE_PASS原创 2020-05-19 14:48:32 · 7665 阅读 · 0 评论 -
Process 'command 'E:\SDK\build-tools\26.0.2\aapt.exe'' finished with non-zero exit value 1
原因是xml文件有问题,却不显示报错,build出现问题解决方法:双击build就能找到问题所在原创 2019-11-12 10:14:50 · 342 阅读 · 0 评论 -
Error:trouble processing "java/awt/Color.class": Error:Ill-advised or mistaken usage of a core class
Error:trouble processing "java/awt/Color.class":Error:Ill-advised or mistaken usage of a core class (java.* or javax.*)Error:when not building a core library.Error:This is often due to inadvertent...原创 2019-04-17 14:31:56 · 496 阅读 · 0 评论 -
(Error)Error:Cause: buildToolsVersion is not specified.
Error:Cause: buildToolsVersion is not specified.需要在APP/build.gradle里的android里加上buildToolsVersion “23.0.1”这种类似的话 原因是缺失build版本原创 2018-03-08 11:11:45 · 2597 阅读 · 1 评论 -
(Error)Error:(28, 0) Could not find method implementation() for arguments [com.android.support:appco
Error:(28, 0) Could not find method implementation() for arguments [com.android.support:appcompat-v7:25.3.1] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandl原创 2018-03-08 11:06:35 · 39189 阅读 · 0 评论 -
Android Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug'
Error:Execution failed for task ':app:dataBindingProcessLayoutsDebug' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(此地方指向你的layout的位置)lineNumber: 1; columnNumber: 7; 不允许有匹配 "[xX]原创 2017-07-12 11:14:54 · 1520 阅读 · 0 评论