tinker icon indicating copy to clipboard operation
tinker copied to clipboard

AGP-4.2.1 apkData 属性无法获取

Open dupengyun opened this issue 4 years ago • 1 comments

https://github.com/Tencent/tinker/blob/d8f74ab0fbffe74341ba09cc10f9faf32b22290d/tinker-sample-android/app/build.gradle#L429

  • gradle-6.7.1
  • AGP-4.2.1
  • tinker-1.9.14.16
  • 构建提示apkData属性不存在,建议variant.outputs.first().apkData.outputFileName 改为variant.outputs.first().variantOutput.outputFileName.get()获取

dupengyun avatar May 21 '21 03:05 dupengyun

hallo, have you found the solution for this issue?

i have same issue for this

Could not get unknown property 'apkData' for ApkVariantOutputImpl_Decorated{variantOutput=VariantOutputImpl(versionCode=property(java.lang.Integer, fixed(class java.lang.Integer, 10000)), versionName=property(java.lang.String, fixed(class java.lang.String, 1.0.0-stag)), enabled=property(java.lang.Boolean, fixed(class java.lang.Boolean, true)), variantOutputConfiguration=VariantOutputConfigurationImpl(isUniversal=false, filters=[]), baseName=stag-debug, fullName=stagDebug, outputFileName=property(java.lang.String, fixed(class java.lang.String, app-stag-debug.apk)))} of type com.android.build.gradle.internal.api.ApkVariantOutputImpl.

ysavr avatar May 31 '22 07:05 ysavr