Ionic can't find ANDROID_HOME on Windows 10 - build

Im using Ionic to build an Android app and I'm finding a problem that I cant work around or find an answer to. When I run ionic build android or ionic emulate android I get the following:
Error: Failed do find 'ANDROID_HOME'...
I believe I have added the correct variables to PATH and ANDROID_HOME under System Variables, but please check: http://imgur.com/a/UOdCd
The first image is ANDROID_HOME, the second shows where the sdk is located, the third is the Error itself and the fourth is my path variable.
I run it from Git Bash. Running as an administrator did not make any difference, I also tried reinstalling Android SDK (with Android Studio) in a different folder (was in %HOME%\AppData\Local\Android\ before) without any difference. Also tried to reboot after reinstalling SDK.
I also tried to run the SDK Manager first (C:\Android\sdk\tools\android.bat) and keeping it open while trying to build or emulate, but it still didn't work.

You need to create a new system variable called ANDROID_HOME and as a value put the path to the android SDK installation directory.
For more information, please refer to the installation guide.

Related

Should I move windows project folder into WSL?

I'm trying to set up a work environment on a new machine and I am a bit confused how best to procede.
I've set up a new windows machine and have WSL2 set-up; I plan on using that with VS Code for my development environment.
I have a previous django project that I want to continue working on stored in a folder in a thumb drive.
Do I move the [windows] project folder into the linux folder system and everything is magically ready to go?
Will my previous virtual environment in the existing folder still work or do I need to start a new one?
Is it better to just start a new folder via linux terminal and pull the project from github?
I haven't installed pip, python, or django on the windows OR linux side just yet either.
Any other things to look out for while setting this up would be really appreciated. I'm trying to avoid headaches later by getting it all set-up correctly now!
I would pull it from github, and make sure you have the correct settings for line endings, since they are different between windows and linux. Just let git manage these though:
https://docs.github.com/en/get-started/getting-started-with-git/configuring-git-to-handle-line-endings
Some other suggestions:
Use a version manager in linux to manage your python versions - something like pyenv or asdf. It will make life easier.
Make sure to always create a virtual environment for everything and don't pip install anything in your main python. (I use direnv for virtual env management)
The single exception to the previous suggestion is pipx, which I do install in the main python and then use to install things like cli tools, black, isort, pip-tools etc.
Configure VScode to use the pipx installed versions of black, flake8 etc. for linting purposes.
If you're using Docker, enable the WSL integration for your WSL flavour (probably Ubuntu). Note that docker desktop needs starting before your WSL session.

error running expo with react-native gives Application main has not been registered error

I'm getting an odd error now, and this seems to happen no matter what build I deploy. I can switch to a different set of tutorial directories or other folders, run npm start, and on the Expo device on my Android I'll still get this error.
It seems to not matter whether I run Expo SDK 33 or one higher, like 34 or 37. Oddly, I do have a build that sort of works on a different LAN IP. This is odd, because I don't even think I have another build running and this shouldn't pull up, but it does. I'll attach a screen shot here, but I'm really confused as to why this is happening. I can't find any reference (per the screen shot) where the StyleSheet method is missing.
I am running Expo34.0.4 in this build and using the following react-native build reference -
"react-native": "https://github.com/expo/react-native/archive/sdk-40.0.0.tar.gz",
Should I install a specific (different) version of both Expo and React-Native?
This had been working for a while and then suddenly started giving this error.
Thanks!
Do you use the compatible version for your SDK? Use react-native from https://github.com/expo/react-native/archive/sdk-34.0.2.tar.gz for Expo SDK 34.
Each Expo SDK version depends on a React Native version.

Google Cloud SDK installation fails on Windows 10

When I tried to install Google Cloud SDK, it fails:
Welcome to the Google Cloud SDK!
To use the Google Cloud SDK, you must have Python installed and on your PATH.
As an alternative, you may also set the CLOUDSDK_PYTHON environment variable
to the location of your Python executable.
Google Cloud SDK installer will now exit.
Press any key to continue . . .
I installed Python and copied system32 path in system variable and environment variable even, but still fails. What's going wrong?
I had the same problem some time ago, this is how I solved it:
uninstall cloud sdk (delete also the folder), uninstall python
reboot you system
launch the installer and select "install bundled python"
when the installer asks for an installation path, point to "C:\Users\YOUR_USER\AppData\Roaming\gcloud"
I had a problem with my windows installation since I had different permissions set on the default path suggested which was "Program Files (x86)".
Starting fresh + changing path fixed the issue for me :)
also review this page, to see if everything is in check for you

How can I fix this issue, installing the Google Cloud SDK?

I can't seem to find a way to install the Google cloud platform. I have tried to download from the Eclipse Marketplace, from the web page; and nothing.
After some work, I have reached the point where in the installation terminal, they ask me if I want to UPDATE %PATH% to include CLOUD SK Binaries?
I put yes and this happens:
even though my system variables are:
Please Help
I just tried it installing it in a new windows vm from here and the %PATH% the installation created is not the same as yours. In my case it was
C:\Users\<YOUR_USER>\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin
Are you sure Cloud SDK binaries are in C:\Program Files (x86)\Google\google-cloud-sdk\bin?

Virtualbox Shared Folder With using kivy

Ive been trying to use ubuntu on virtualbox to make APK from my Android program that I wrote with kivy.
But it just doesn't work. VM doesn't recognize shared folder. I've tried everything like guest-additions and I've check every article/Q-A about this subject and I'm about to go mad.
Is there any other way to make APK in windows other than using a VM. Please inform me, I've got my exams soon and I don't want to get hang to this subject anymore. I'm using windows 10. Thank you for your helps.