Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
358 views
in Technique[技术] by (71.8m points)

java - Invoke Gradle script - assembleDebug failed in jenkins

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:

  1. Set Android SDK root : C:UsersUsernameAppDataLocalAndroidSdk
  2. Set JDk Location : C:Program FilesAndroidAndroid Studiojre
  3. Gradle : Gradle 6.5 Auto installation (matched the version)
  4. Freestyle project in jenkins
  5. Set Git path
  6. 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

  • Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

  • Get more help at https://help.gradle.org

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

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...