Bacon&Onions
Member
I was testing my game, when yesterday out of the blue, I could no longer compile to android. It worked fine earlier that day, and I didn't make any changes to android settings, so I'm not sure what could have changed. I tried restarting my computer and phone, clearing the cache multiple times and running old versions of build, but I can't build anything to android anymore in gamemaker studio 2.
If anyone would help me I'd really appreciate it. I have no idea what could be the problem.
The error message I get is-
C:\Windows\system32\cmd.exe /c "subst W: "Z:/Bird-View__B192EEBA_D7026D5D\Android\default" && W: && cd \com.company.game && "X://android/runner\gradle\gradlew" build assembleRelease -x lint "
Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: The handle is invalid
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:43)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)
... 1 more
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project ''.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find any version that matches com.android.tools.build:gradle:2.2.0+.
Versions that do not match:
2.3.0
2.1.3
2.1.2
2.1.0
2.0.0
+ 71 more
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml
https://jcenter.bintray.com/com/android/tools/build/gradle/
https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
If anyone would help me I'd really appreciate it. I have no idea what could be the problem.
The error message I get is-
C:\Windows\system32\cmd.exe /c "subst W: "Z:/Bird-View__B192EEBA_D7026D5D\Android\default" && W: && cd \com.company.game && "X://android/runner\gradle\gradlew" build assembleRelease -x lint "
Exception in thread "DisconnectableInputStream source reader" org.gradle.api.UncheckedIOException: java.io.IOException: The handle is invalid
at org.gradle.internal.UncheckedException.throwAsUncheckedException(UncheckedException.java:43)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:125)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: The handle is invalid
at java.io.FileInputStream.readBytes(Native Method)
at java.io.FileInputStream.read(FileInputStream.java:255)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:286)
at java.io.BufferedInputStream.read(BufferedInputStream.java:345)
at org.gradle.util.DisconnectableInputStream$1.run(DisconnectableInputStream.java:96)
... 1 more
FAILURE: Build failed with an exception.
* What went wrong:
A problem occurred configuring root project ''.
> Could not resolve all dependencies for configuration ':classpath'.
> Could not find any version that matches com.android.tools.build:gradle:2.2.0+.
Versions that do not match:
2.3.0
2.1.3
2.1.2
2.1.0
2.0.0
+ 71 more
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/maven-metadata.xml
https://jcenter.bintray.com/com/android/tools/build/gradle/
https://repo1.maven.org/maven2/com/android/tools/build/gradle/maven-metadata.xml
Required by:
project :
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED