升级了Android Studio3.4之后,以前的项目出现问题——
com
.
android
.
builder
.
internal
.
aapt
.
v2
.
Aapt2Exception
:
*
*
Android resource linking failed
*
*
C
:
\Users\zzulj\
.
gradle\caches\transforms
-
2
\files
-
2.1
\f1f31426f3433123602c7ae4d4677ddb\res\values
-
v28\values
-
v28
.
xml
:
9
:
5
-
12
:
13
:
AAPT
:
error
:
resource android
:
attr
/
dialogCornerRadius
not
found
.
C
:
\Users\zzulj\Desktop\HeartRateDetection\app\build\intermediates\incremental\mergeDebugResources\merged
.
dir\values
-
v28\values
-
v28
.
xml
:
11
:
AAPT
:
error
:
resource android
:
attr
/
dialogCornerRadius
not
found
.
C
:
\Users\zzulj\
.
gradle\caches\transforms
-
2
\files
-
2.1
\
23
b0ae936736779a5c8493ec7be621d3\res\values\values
.
xml
:
89
:
5
-
125
:
25
:
AAPT
:
error
:
resource android
:
attr
/
fontVariationSettings
not
found
.
C
:
\Users\zzulj\
.
gradle\caches\transforms
-
2
\files
-
2.1
\
23
b0ae936736779a5c8493ec7be621d3\res\values\values
.
xml
:
89
:
5
-
125
:
25
:
AAPT
:
error
:
resource android
:
attr
/
ttcIndex
not
found
.
error
:
failed linking references
.
at com
.
android
.
builder
.
internal
.
aapt
.
v2
.
Aapt2Exception$ Companion
.
create
(
Aapt2Exception
.
kt
:
45
)
at com
.
android
.
builder
.
internal
.
aapt
.
v2
.
Aapt2Exception$ Companion
.
create$
default
(
Aapt2Exception
.
kt
:
39
)
at com
.
android
.
build
.
gradle
.
internal
.
res
.
Aapt2ErrorUtils
.
rewriteException
(
Aapt2ErrorUtils
.
kt
:
97
)
at com
.
android
.
build
.
gradle
.
internal
.
res
.
Aapt2ErrorUtils
.
rewriteLinkException
(
Aapt2ErrorUtils
.
kt
:
73
)
at com
.
android
.
build
.
gradle
.
internal
.
res
.
LinkApplicationAndroidResourcesTask$ AaptSplitInvoker
.
invokeAaptForSplit
(
LinkApplicationAndroidResourcesTask
.
kt
:
808
)
at com
.
android
.
build
.
gradle
.
internal
.
res
.
LinkApplicationAndroidResourcesTask$
.
.
.
.
从一堆信息中的某些关键字推断,可能是SDK版本的问题,因为项目导入的时候gradle和相关依赖库都做了升级,因此,编译平台可能也需要对应的升级。
在
project structure
中将SDK版本提升到28(或者在
build.gradle
文件中直接改)。
问题解决。
如果不便升级SDK,那么还可以具体修改某些依赖库,在build.gradle文件中直接修改。这个方法因人而异,毕竟每个人的项目配置不尽相同,详情可以参考
这篇博客
(我用这个方法不管用。。。)
CatchUp
An app for catch
ing
up on th
ing
s.
https://medium.com/@sweers/catch
ing
-up-on-catchup-introduction-7581c099f4bc
Motivations
There's a lot of services I like read
ing
up on throughout the day. Most of these services have
dedicated apps for consum
ing
them, but often times I just want to skim the front page and only deep
dive occasionally. Enter CatchUp: a high level presentation of the "front page" of several services
in short form, and intelligent deep
link
ing
into dedicated apps if you wa
Execution
failed
for task ':react-native-photo-editor:verifyRelease
Resource
s'.
> 1 exception was raised by workers:
com.
android
.builder.internal.aapt.v2.Aapt2Exception:
Android
resource
link
ing
f...
Android
resource
link
ing
failed
Output: D:\wn\app\src\main\res\layout\gridview_item.xml:6: error:
Talk
ing
Kotlin
Android
App
Hi there! This is an
android
app for Talk
ing
Kotlin.com, a podcast about all the Kotlin th
ing
s.
Goodies
Kotlin
MVPVM
Android
Architecture Components (LiveData, ViewModel, etc.)
Deep
link
ing
to directly access episodes from urls
Feature Wish List
Add extra data posted on the website of talk
ing
kotlin but can't be added through SoundCloud
Make the app more social (shares, likes, etc.)
A detail screen for each episode
Mea culpa
Not enough tests (WIP)
No DI (Dagger2?
1.解决办法1(无效)
注意图片路径,显示的是.gradle/caches/transforms-2这个目录,看情况,网上看到有人是transforms-1,不过我没有这个目录。按照网上的说法删除这个目录,并且invaild and restart。没有效果。
2.解决办法2(有效)
主要问题是appcompat的问题。我AS版本是3.6.1,原来使用的是1.4.1版本,这个版本太高了,换成1.2.0就可以了。constraintlayout虽然不是这个问题的原因,但
在
android
studio学习过程中经常会遇到一个
android
resource
link
ing
failed
的错误,在编译的时候不会报错也没有提示,一运行就出现个这样的错误,这种问题可以分以下两种情况
1、假如提醒了具体错误位置,那么这个错误大概率是出现在你的代码段里,如下图
I'm new to
android
-programm
ing
. This is my first project. I just wanted to create a customized-keyboard based on some cod
ing
s I found on the net. I created no-activity project and go
ing
to run this as...