WARNING: API 'variantOutput.getProcessManifest()' is obsolete and hasbeenreplaced with 'variantOutput.getProcessManifestProviderWARNING: API 'variant.getMergeResources()' is obsolete and hasbeen</
它说这是由这3个过时的API错误引起的:
WARNING: API 'variant.getJavaCompile()' is obsolete and hasbeenreplaced with 'WARNING: API 'variant.getMergeAssets()' is obsolete and hasbeenreplac
WARNING: API 'variantOutput.getProcessResources()' is obsolete and hasbeenreplaced with 'variantOutput.getProcessResourcesProviderWARNING: API 'variantOutput.getProcessManifest()' is obsolete and has <
'variant.getJavaCompile()' is obsolete and hasbeenreplaced with 'variant.getJavaCompileProvider()'To determine what is calling variant.getJavaCompile(), use -Pandroid.debug.obsoleteApi=true on the commandWARNING: API</em
[WARNING: Configuration 'compile' is obsolete and hasbeenreplaced with 'implementation' and 'api'.WARNING: Configuration 'androidTestCompile' is obsolete and hasbeenreplaced w
我发现了一个警告(不是错误),上面写着“'variant.getJavaCompile()‘接口已过时,已被’variant.getJavaCompileProvider()‘替代。”但是,variant.getJavaCompile()并没有在问题gradle文件中明确说明。我必须找出是什么在调用这个方法。我也看到了这个有用的帖子:WARNING: API 'variant.getJavaCompile()' is obsolete and has <em
WARNING: API 'variantOutput.getProcessResources()' is obsolete and hasbeenreplaced with 'variantOutput.getProcessResourcesProviderWARNING: API 'variantOutput.getProcessManifest()' is obsolete and has <
and hasbeenreplaced with 'implementation' and 'api'.API 'variant.getAssemble()' is obsolete and hasbeenreplaced with 'variant.getAssembleProvider()'.API 'variant
WARNING: API 'variant.getAssemble()' is obsolete and hasbeenreplaced with 'variant.getAssembleProviderWARNING: API 'variantOutput.getProcessResources()' is obsolete and hasbeenreplaced</
Configuration 'androidTestCompile' is obsolete and hasbeenreplaced with 'androidTestImplementation'Configuration 'androidTestApi' is obsolete and hasbeenreplaced with 'androidTestImplementa
我使用Android Studio 3.5.0和Gradle版本5.6.1、5.6、5.4.1,但仍然得到相同的结果:
INFO: API 'variant.getMergeResources()' isobsolete and hasbeenreplaced with 'variant.getMergeResourcesProvider()'.
Run with --info or --debug option to get more log output. Run
with --scan to get full insights.'variant.getJavaCompile()' is obsolete and hasbeenreplaced with 'variant.getJavaCompileProvider()'To determine what is calling <
\nWARNING: API 'variantOutput.getProcessManifest()' is obsolete and hasbeenreplaced with 'variantOutput.getProcessManifestProvider\nWARNING: API 'variant.getMergeResources()' is obsolete and hasbe