Main error reports:
> Using multiple versions of the Android gradle plugin in the sample build is not allowed.
meaning: using multiple versions of the Android gradle plugin in the same version is not allowed.
positioning:
gradle version problem in
unit
Solution:
there is a gradle version file in the project
launchertemplate
maintemplate
find a code similar to the following
buildscript {
repositories {
mavenCentral()
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.3'
**BUILD_SCRIPT_DEPS**}
If not, add
as shown in the figure
to ensure that the version numbers (3.4.3) in the two files are consistent
Read More:
- [Solved] Unity package Error: CommandInvokationFailure: Gradle build failed.
- [Solved] Unity Package Error: Failed running D:\Program Files\Unity2018.4.1\Editor\Data\il2cpp/build/il2cpp.exe
- Unity Package Webgl Error: Failed running “D:\Program Files\Unity2018.3.0f2\Unity\Editor\Data\PlaybackEngines\Web
- [Solved] Unity Import Xcode Project Error: iOS framework addition failed due to a CocoaPods installation failure.
- [Solved] Vcpkg Install Building package brotli:x64-windows failed with: BUILD_FAILED Locking applocal.ps1
- [Solved] Unity Error: Visual Studio Editor Package version 2.0.11 is available……..
- [Solved] Unity Publish WebGL Error: Unable to parse Build/webTest2.framework.js.gz
- Vue Package Error: npm ERR! missing script: build
- [Solved] Flutter package flutter build apk Error: permission-handle
- [Solved] NPM run build package error: Ineffective mark-compacts near heap limit Allocation failed – JavaScript heap out of memory
- [Solved] Mac Unity Export Android Project Error: Error building Player: Win32Exception
- Failed to find Build Tools revision 30.0.3 [How to Solve]
- Go build package error: TARGET_OS_MAC & IOMasterPort
- Flutter android studio runs gradle build error: Could not resolve all artifacts for configuration’:classpath’.
- An error was reported when Maven package was running the packaged jar package: there is no main list attribute in xxx.jar, which can be solved by configuring Maven plugin
- [Solved] Unity3d reports an error using the opencv plug-in: unsafe code may only appear if compiling with/unsafe.
- How to Solve Error “Could not find com.android.tools.build:gradle:3.0.1”
- [Solved] Unity packaged and exported apk error: Failed to load libmain.so’
- [Solved] Execution failed for task ‘:app:processDebugResources‘. > A failure occurred while executing com.and
- [Solved] Flutter compile error: Failed to find Build Tools revision 29.0.2