Build for android freezes in unity - android

I finished creating my game and when tried to build it for android, every time I build it the build process freezes for hours and nothing happens, even unity stops responding to me, so I kill it from taskmng... it works fine for windows but can't build for andriod, anyway I tried to re-install unity and update it(to 2018.2.10f1 (personal)) but it still doesn't work. And I'm not ready to re-download the SDK with all that size....
Edit: I solved the problem... As I thought, the problem was related to the Android SDK... So unfortunately I had to re download it from zero

I solved the problem...
As I thought, the problem was related to the Android SDK... So unfortunately I had to re download it from zero

Related

React Native - Build Failed at make error

error message
I am pretty new to mobile app development and have been trying my hand at react native. Everything was going well and I was making slow, but steady progress. Suddenly, my app just stopped compiling. Honestly, I am not sure what I did to prompt this, but I think it was when I tried to pull in a new dependency. I am doing my development with an android emulator and I am able to run it with no issues.
I have tried just about everything to fix this. I have uninstalled and reinstalled many dependencies and followed some basic tutorials and documentation. I have removed react cli tools as well as tried reinstalling it. I have deleted my node_modules and package-lock and reinstalled with npm. I have restarted web storm, cleared caches, and restarted my computer. I went through and checked all dependencies such as java and gradle and reinstalled them. I genuinely have no idea on how to fix it and have made absolutely no progress. No matter what I do, I get the exact same error message each and every time. Any help would be so very much appreciated!

Android Studio gradle build got stuck

Recently my android studio got stuck in gradle building very frequently, as shown in the picture above, which already took 30m to run and still keeps running. The only way to finish it is just force to stop android studio and restart the computer. Is there any way to solve this problem? Thanks for any idea!

Flutter loads old version of app every time I restart the app

Every time I run the flutter app from IntelliJ, it loads an old outdated version of the app from days ago. The new version of the app is only loaded after a hot reload and even then, if I restart the app, the old version is loaded again.
I there any way I can fix this issue? It's really frustrating.
This is a bug (https://github.com/flutter/flutter/issues/16604) because Flutter should better recognize when rebuilding is required,
but running
flutter clean
should fix it in the meantime
Easy way to do it using Android Studio as shown in snapshot.
Don't know how this bug hasn't been resolved by now.
But for any one also struggling with this (using visual studio code), who already tried "flutter clean", the only thing that works for me is clicking on "restart" every time I start debugging.

Android Studio gradle build stuck at app:processDebugResources

I'm on Windows. I created a new project on Android Studio for Marshmallow at least.
The only thing I've done so far is generating the main activity which is a tabbed activity with view pager. Also, you should know that this project is a private git repo that I cloned.
I'm working on this project with another developer and the project is perfectly working on his side.
The problem is:
When I try to launch the app (wether it is a virtual device or my real phone), the gradle build gets stuck at the app:processDebugResources step. I waited more than an hour and nothing happened. Moreover, when I want to cancel the gradle build, it doesn't respond and I have to kill Android Studio process. Then I restart Android Studio and I have to kill a gradle process that prevents the initial gradle build (at Android Studio startup) from working.
The crazy thing is that I was able to launch the app before. I even installed it on my phone!
What I've tried so far:
Do what stackoverflow was giving as solutions like tick the offline mode in the settings
Create a new project --> It doesn't change anything
Reinstall Android Studio --> It doesn't change anything
Deactivating Avast antivirus
Invalidate cache/restart + Clean + rebuild (the rebuild gets stuck like when I try to launch the app)
And maybe other solutions that I forgot...
It's getting very annoying as it's making me lose days of development.
If you have any more solutions, or if you think I should try again some of the previous solutions, help would be greatly appreciated !
I know this is an old post, but I faced the same problem during the last few days and since i got crazy I hope I can help someone else out there.
After many hours of troubleshooting I found that the Java Platform SE binary executable goes in "suspended mode" in Windows 10, preventing Android Studio from compiling (it hangs at app:processDebugResources).
Example Screenshot
Killing the suspended process and recompiling the project works just fine... until Java gets suspended again.
Maybe your gradle version is not compatible with it. Try again with latest version of gradle in your project.
I did several things:
Install NDK
Change JDK from embedded one to Jdk 8
Redownload SDK i was using (6,7,8)
And now the problem is solved ! I have no idea which of these things made the tricks but I'm happy ! It may be useful to someone else one day.

Android emulators don't start

Since yesterday, my android studio emulators don't start. It was just after i updated Android Studio Library, i don't know if it is just a coïncidence.
What happens when i press start is:
The emulator command is executed
I see emulator.exe process in windows task manager, but no window is opened
Before that, the emulators started just fine, i had no problems, so it shouldn't be hardware issues.
I tried to launch it from the command line, to see if there were errors, but there's nothing. I also checked android studio's logs but still nothing... I also reinstalled completely android studio with no effects. I also tried to let it run for awhile but nothing appears.
Does anyone have a clue about what could cause this ?
EDIT :
It was a known issue (GPU related) of the SDK Tools 25.1.1 , it has been updated about 5 days later and now it works perfectly.
I had exactly the same issue.
Removing C:Windows\System32\Wbem from system PATH variable helps me:
https://stackoverflow.com/a/36650430/1901621

Categories

Resources