level 5
网名在在在
楼主
引入android.arch.work:work-runtime时出现bug:
dependencies {
implementation "androidx.work:work-runtime:2.2.0"
compile fileTree(dir: 'libs', include: ['*.jar'])
}
会出现报错:
Error: Invalid instruction 'targetApi', valid instructions are : REMOVE,REPLACE,STRICT
这个bug,出现在库文件work-runtime-2.2.0.exploded.aar里。我没办法修改,修改后有自动会到原来的代码。
我把work-runtime改成别的版本,仍然有这个问题。无论是建的是不是Androidx 工程都会出现这个问题。
请问,这个问题要怎么解决?



2019年11月17日 07点11分
1
dependencies {
implementation "androidx.work:work-runtime:2.2.0"
compile fileTree(dir: 'libs', include: ['*.jar'])
}
会出现报错:
Error: Invalid instruction 'targetApi', valid instructions are : REMOVE,REPLACE,STRICT
这个bug,出现在库文件work-runtime-2.2.0.exploded.aar里。我没办法修改,修改后有自动会到原来的代码。
我把work-runtime改成别的版本,仍然有这个问题。无论是建的是不是Androidx 工程都会出现这个问题。
请问,这个问题要怎么解决?


