More than one file was found with OS independent path ‘lib/armeabi-v7a/libgnustl_shared.so’
matrix 导致build失败,但是运行成功
line 需要设置 height 不然会导致drawBottom等属性不显示
1
2
3
4
5
6
7
8
9
10
11
<?xml version="1.0" encoding="utf-8"?>
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="line">
<size
android:width="500dp"
android:height="2dp" />
<stroke
android:width="1dip"
android:color="#EEEEEE" />
</shape> ## 在可被继承的类的构造方法中调用可被重写的方法是件很危险的时间 举例说明,AClass 类在构造方法中调用了 AMethod ; BClass 继承自 AClass 并重写了 AMethod ,如果在重写的 AMethod 中使用了在 BClass 声明的变量 BField ,并且声明 BField 时设置了初始值,那么在 AMethod 是拿不到 BField 的初始值的;
gpg: keyserver send failed: No name
C:\Program Files (x86)\GnuPG\bin\gpg.exe 的输出为:gpg: sending key F94434384A47D180 to hkps://hkps.pool.sks-keyservers.net gpg: keyserver send failed: No name gpg: keyserver send failed: No name
这是因为 hkps://hkps.pool.sks-keyservers.net 服务器已经停止运营了,可以改为 https://keys.openpgp.org/
libc: Fatal signal 11 (SIGSEGV), code 2 (SEGV_ACCERR), fault addr 0xdc010990 in tid 24778 (com.chaitai.crm), pid 24778 (com.chaitai.crm)
有可能是 CUP 架构不支持 也有可能是因为模拟器问题,改用真机后就可以了
The project uses Gradle 4.4.1 which is incompatible with Java 11 or newer.
1
2
3
Unable to start the daemon process.
The project uses Gradle 4.4.1 which is incompatible with Java 11 or newer.
出现这个问题的原因,
- Gradle 4.4.1 和 Java 11 不兼容
-
高版本 android studio Gradle 默认使用 Java 11 (目前已知 3.4 默认使用 Java 8; Arctic Fox 2020.3.1 Patch 2 默认使用 Java 11)
解决方式:
- 将 Gradle 版本升级到 4.8 及以上;
- Android studio -〉 设置 -〉 gradle -〉Gradle sdk 修改为 Java 8
One or more issues found when checking AAR metadata values:
Execution failed for task ':app:checkDebugAarMetadata'.
> A failure occurred while executing com.android.build.gradle.internal.tasks.CheckAarMetadataWorkAction
> One or more issues found when checking AAR metadata values:
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.core:core-ktx:1.7.0.
AAR metadata file: /Users/hanyi/.gradle/caches/transforms-3/edeb02fb4cefd454699890f987ffc29f/transformed/jetified-core-ktx-1.7.0/META-INF/com/android/build/gradle/aar-metadata.properties.
The minCompileSdk (31) specified in a
dependency's AAR metadata (META-INF/com/android/build/gradle/aar-metadata.properties)
is greater than this module's compileSdkVersion (android-30).
Dependency: androidx.appcompat:appcompat:1.4.0.
AAR metadata file: /Users/hanyi/.gradle/caches/transforms-3/678f8f90516713ab9a21055c8d2ba99f/transformed/appcompat-1.4.0/META-INF/com/android/build/gradle/aar-metadata.properties.
这个错误是因为 Dependency 一些包指定了最小 compileSdkVersion ,而使用项目的 compileSdkVersion 太小了,需要升级到 minCompileSdk
android:exported needs to be explicitly specified for
Manifest merger failed : android:exported needs to be explicitly specified for
启动页面 activity 必须显式的指定 android:exported
Failed to create Jar file … aspectjtools …
gradle 版本太高需要用低版本的 gradle 可以尝试 5+ 或者 4+
logcat: Unexpected EOF!
原因:手机日志缓存区被爆了 解决:开发者模式-》日志记录其缓冲区大小:设置到最大(手机重启后可能会失效)
Caused by: java.io.IOException: error=86, Bad CPU type in executable
关键词 :Mac升级、buildToolsVersion 修改 buildToolsVersion 版本,25.0.0 以上
阿里内部项目 gradle.properties 添加 isAlipayUseCustomAapt26=true
Caused by: org.gradle.api.GradleException: Failed to create Jar file /Users/hanyi/.gradle/caches/jars-8/704b8c8527f09270854ed3f8a1f7e6ea/aspectjtools-1.8.13.jar.
项目缺少 gradle 文件夹