• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android Android compile error

M

Mick1001

Guest
Hello

I have a problem when I compile my game to android. It build the apk but it continue to run and I have to close gamemaker 2 and start again. When I tried to install it on my android phone it says can not install and it stop

The following happens:

BUILD SUCCESSFUL

Total time: 4.341 secs

C:\WINDOWS\system32\cmd.exe DONE (0)

C:\WINDOWS\system32\subst.exe /d V:


C:\WINDOWS\system32\subst.exe DONE (0)

working dir: C:\Program Files\GameMaker Studio 2

C:\Users\nghhi\AppData\Local\Android\Sdk\platform-tools\adb -s "" get-state

error: device '' not found


working dir: C:\Program Files\GameMaker Studio 2

C:\Users\nnn\AppData\Local\Android\Sdk\platform-tools\adb -s "" get-state

error: device '' not found

Hope anybody can help
Thank you

Mick
 

DyadGames

Member
Are you selecting the correct Target with the device plugged in? What device is it? Also make sure the device is in Developer Mode with USB Allowed
 
M

Mick1001

Guest
I do not want to test it om the phone with cable. I want to make the APK file. I never test it before I make the apk file
 

DyadGames

Member
Right so the build is successful which means its making the APK. All the errors at the end are just saying I cant find your targeted advice, nothing wrong there.

I also cant seem to install an APK onto my Galaxy S8, might be from security. I would host on Google Play and test it out there and see if you can download and play. Worked for me.

Cheers,
Alex
 
M

Mick1001

Guest
Thank you for your reply

Now I have a new problem:

AILURE: 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
 

rIKmAN

Member
Thank you for your reply

Now I have a new problem:

AILURE: 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
https://forum.yoyogames.com/index.php?threads/android-fix-missing-gradle-dependencies.56678/
 

Genetix

Member
After performing the steps given by Nocturne, GMS2 tells me when attempting to sweep the cache that the cache is locked and can't be cleaned. This is on Windows 10 and happens even after rebooting the computer and making sure no files are open anywhere. Anyone else have this issue or any ideas to resolve it?
 
Top