I have very minimal knowledge in android development..just trying to compile very basic empty android project on Jenkins but unable to due to few errors..
Steps taken in Jenkins:
- Set Android SDK root : C:UsersUsernameAppDataLocalAndroidSdk
- Set JDk Location : C:Program FilesAndroidAndroid Studiojre
- Gradle : Gradle 6.5 Auto installation (matched the version)
- Freestyle project in jenkins
- Set Git path
- Invoke Gradle script : check Gradle wrapper
Tasks - assembleDebug
When the build is executed it gives following error :
[Gradle] - Launching build.
[Android] $ cmd.exe /C "C:WINDOWSsystem32configsystemprofileAppDataLocalJenkins.jenkinsworkspaceAndroidgradlew.bat assembleDebug && exit %%ERRORLEVEL%%"
Starting a Gradle Daemon, 2 incompatible and 1 stopped Daemons could not be reused, use --status for details
FAILURE: Build failed with an exception.
- What went wrong:
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
java.io.IOException: The filename, directory name, or volume label syntax is incorrect
BUILD FAILED in 35s
Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure
Finished: FAILURE
Note: I have tried to execute gradlew assembleDebug as a stand alone process in windows cmd prompt. Build was successful. But failing in Jenkins.
question from:
https://stackoverflow.com/questions/65922124/invoke-gradle-script-assembledebug-failed-in-jenkins 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…