Solution of Android studio 4.1 Packaging Failure and Plug in Error Prompt
- 2021-12-09 10:04:00
- OfStack
1. Android studio upgrade 4.1, Android Gradle plug-in failed to package after upgrading from 4.0. 2 to 4.1. 0, and packaged normally after rolling back to 4.0. 2.
Error message:
•What went wrong:
Execution failed for task ': app: processDebugManifest'.
Could not get unknown property 'manifestOutputDirectory' for task ': app: processDebugManifest' of type com. android. build. gradle. ProcessMultiApkApplicationManifest.
Huawei push is used in the project, so the plug-in address of AppGallery Connect is configured in the project-level build. gradle file:
classpath " com.huawei.agconnect:agcp:1.3.1.300 "
Probably caused by incompatibility between this plug-in and gradle: 4.1. 0. After modifying the plug-in version number, the package is normal
classpath " com.huawei.agconnect:agcp:1.4.1.300 "
2. After Android studio is upgraded to 4.1, the plug-in is compatible and cannot be found in the plug-in list. This is because the local storage path of Android studio plug-in has changed. You only need to delete the plug-in reported error in the folder and restart Android studio
Version 4.1 Save Plug-in Local Path:
C:\Users\用户\AppData\Roaming\Google\AndroidStudio4.1\plugins