AGP-4.2.1 apkData 属性无法获取
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()获取
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.