在制作minifyEnable True
时,我遇到以下错误:
Error:(15, 0) Could not find property 'True' on BuildType_Decorated{name=release, debuggable=false, testCoverageEnabled=false, jniDebuggable=false, pseudoLocalesEnabled=false, renderscriptDebuggable=false, renderscriptOptimLevel=3, versionNameSuffix=null, minifyEnabled=false, zipAlignEnabled=true, signingConfig=null, embedMicroApp=true, mBuildConfigFields={}, mResValues={}, mProguardFiles=[], mConsumerProguardFiles=[], mManifestPlaceholders={}}. <a href="openFile:E:\ANDROID\Projects\GPACalculator2\app\build.gradle">Open File</a>`
答案 0 :(得分:0)
ProGuard可能正在删除运行时所需的类或变量。
您需要指定ProGuard配置以在应用程序中保留相关文件。有关详细信息,请参阅此链接:https://developer.android.com/studio/build/shrink-code.html