SoFunction
Updated on 2025-03-01

Android studio 4.1 package failure and plugin error prompt solution

1. Android studio upgrades 4.1. After upgrading from 4.0.2 to 4.1.0, the package failed and after falling back to 4.0.2, the package failed.

error message:
•What went wrong:
 Execution failed for task ‘:app:processDebugManifest'.
Could not get unknown property ‘manifestOutputDirectory' for task ‘:app:processDebugManifest' of type .

The project uses Huawei push, so the AppGallery Connect plug-in address is configured in the project-level file:

classpath “:agcp:1.3.1.300”

It may be a problem caused by the incompatibility between this plug-in and gradle:4.1.0. After modifying the plug-in version number, the package is normal.

classpath “:agcp:1.4.1.300”

2. After Android studio upgraded 4.1, it prompted that the plug-in is compatible, but it cannot be found in the plug-in list. This is because the local storage path of the Android studio plug-in has changed. You only need to delete the plug-in reported in the folder and restart Android studio.

Version 4.1 saves the plugin local path:C:\Users\Users\AppData\Roaming\Google\AndroidStudio4.1\plugins

This is the article about the solution to Android studio 4.1 package failure and plug-in error prompts. For more information about Android studio 4.1 package failure, please search for my previous articles or continue browsing the related articles below. I hope everyone will support me in the future!