Google Android Studio
You may install Android Studio though Solar2D does not require to install Android Studio to build an android app
-
https://docs.coronalabs.com/guide/distribution/androidBuild/index.html
-
https://docs.coronalabs.com/guide/start/installWin/index.html#jdk
Path for java runtime and android platform tools, for instance,
- C:\Program Files (x86)\Java\jre1.8.0_261\bin
-
it contains adb tool that installs .apk to your android phone. Alternativly you can install the platform tools from Adnroid Studio’s SDK Manager
-
C:\Users{YOUR_NAME}\AppData\Local\Android\sdk\platform-tools
System Properties window, click the Advanced tab, and then click Environment Variables.
-
keystore
YOu can use Android Studio to make a keystore file and use it for building with Corona simulator
- Build > Build > Generate Signed Bundle/APK
https://developer.android.com/studio/publish/app-signing#generate-key
Or
-
You may use key tool to generate one. You don’t need to install Android Studio
keytool -genkey -v keystore mykeystore.keystore -alias aliasname -keyalg RSA -validity 999999
adb commnad
If you don’t install the platform tools from Android Studio’s SDK Manager, you can manually download adb from Google’s SDK Platform tools . Unzip and put it to somewhere in your PC. Add the path to your environment.
- adb devices
- adb install -r your-app.apk
- adb kill-server
- adb start-server
- adb connect
–
Android Studio
open Android Studio and you find these functions
-
Profiler
https://developer.android.com/studio/profile/android-profiler
-
Log
-
View > Tool Windows > Logcat https://developer.android.com/studio/debug/am-logcat
-
terminla to use
adb logcat
-
Emulator
- Launch AVD Manager
- Create an AVD with GPU Emulation true
- adb install -r your-app.apk