Error launching to Quest

Hey everyone!

I’m new in VR development, and just trying to get Unreal work with Quest, but getting a weird error that I can’t find any solution on Google.

Did anyone else have to deal with this error?

“LogPlayLevel: Error: ERROR: /bin/sh failed with args -c '”/Users/*/Documents/Unreal Projects/MyProject5/Intermediate/Android/APK/gradle/gradlew" :app:assembleDebug’"

It comes up right after Gradle-4.6-all.zip has been downloaded and unpacked.

LogPlayLevel: ====3/19/2020 9:26:27 AM====PERFORMING FINAL APK PACKAGE OPERATION================================================
LogPlayLevel: Fix gradlew permissions
LogPlayLevel: Making .apk with Gradle…
LogPlayLevel: Downloading https://services.gradle.org/distributions/gradle-4.6-all.zip
LogPlayLevel: Exception in thread “main” javax.net.ssl.SSLException: Received fatal alert: protocol_version
LogPlayLevel: at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:190)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:136)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1822)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1004)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1188)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1215)
LogPlayLevel: at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1199)
LogPlayLevel: at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:476)
LogPlayLevel: at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:166)
LogPlayLevel: at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1195)
LogPlayLevel: at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
LogPlayLevel: at org.gradle.wrapper.Download.downloadInternal(Download.java:58)
LogPlayLevel: at org.gradle.wrapper.Download.download(Download.java:44)
LogPlayLevel: at org.gradle.wrapper.Install$1.call(Install.java:61)
LogPlayLevel: at org.gradle.wrapper.Install$1.call(Install.java:48)
LogPlayLevel: at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
LogPlayLevel: at org.gradle.wrapper.Install.createDist(Install.java:48)
LogPlayLevel: at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
LogPlayLevel: at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
LogPlayLevel: Error: ERROR: /bin/sh failed with args -c ‘“/Users/****/Documents/Unreal Projects/MyProject5/Intermediate/Android/APK/gradle/gradlew” :app:assembleDebug’
LogPlayLevel: (see /Users/***/Library/Logs/Unreal Engine/LocalBuildLogs/Log.txt for full exception trace)
LogPlayLevel: AutomationTool exiting with ExitCode=1 (Error_Unknown)
LogPlayLevel: Completed Launch On Stage: Deploy Task, Time: 3.810931
LogPlayLevel: Error: RunUAT ERROR: AutomationTool was unable to run successfully.
PackagingResults: Error: Launch failed! Unknown Error

Thank you in advance :slight_smile:

I am having this error too and cannot find a solution either.

I keep getting hits on the first error around having the Java path wrong but I have messed around with the path 10 ways from Sunday and while I can get it to throw and additional incorrect path error, I cannot get past the above Launch issue. I have spent the entire day on this issue. Reinstalled everything, going over all the install settings. I am totally out of ideas.

I found the issue when I did another fresh install following this video: Unreal Engine 4.23 Oculus Quest Mac Developer Set up - YouTube

When I run: % ruby -e “$(curl -fsSl https://raw.githubusercontent.com/Homebrew/install/master/install)

I get: curl: (7) Couldn’t connect to server

So I browsed to https://raw.githubusercontent.com/Homebrew/install/master/install and there was the following message:

#!/usr/bin/ruby STDERR.print <<EOS Warning: The Ruby Homebrew installer is now deprecated and has been rewritten in Bash. Please migrate to the following command: /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)” EOS Kernel.exec “/bin/bash”, “-c”, '/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"’

So then I ran the suggested: % /bin/bash -c “$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)

and I still get: curl: (7) Couldn’t connect to server

Any idea what is going on here?