$ cd /Users/johndoe/Library/Android/sdk/emulator
$ ./emulator -list-avds
$ ./emulator -avd Pixel_2_XL_API_27
| # creates a post | |
| MODE="CREATE" | |
| POST_FILE="" | |
| # choose editor (sublime/default: vi) | |
| if [[ $1 == [Ss]* ]]; then | |
| txt_editor='sublime' | |
| else | |
| txt_editor='vi' | |
| fi |
| [Espresso] Restoring hidden api policy to the device default configuration | |
| [debug] [ADB] Running '/Users/rakib.amin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_pre_p_apps' | |
| [debug] [ADB] Running '/Users/rakib.amin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy_p_apps' | |
| [debug] [ADB] Running '/Users/rakib.amin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 shell settings delete global hidden_api_policy' | |
| [debug] [ADB] Removing forwarded port socket connection: 8300 | |
| [debug] [ADB] Running '/Users/rakib.amin/Library/Android/sdk/platform-tools/adb -P 5037 -s emulator-5554 forward --remove tcp\:8300' | |
| [debug] [BaseDriver] Event 'newSessionStarted' logged at 1574234302290 (15:18:22 GMT+0800 (+08)) | |
| [debug] [W3C] Encountered internal error running command: A new session could not be created. Details: Error executing adbExec. **Original error: 'Command '/Users/rakib.amin/Libra |
| How to Completely Remove Android Studio | |
| Execute these commands from the terminal | |
| rm -Rf /Applications/Android\ Studio.app | |
| rm -Rf ~/Library/Preferences/AndroidStudio* | |
| rm ~/Library/Preferences/com.google.android.studio.plist | |
| rm -Rf ~/Library/Application\ Support/AndroidStudio* | |
| rm -Rf ~/Library/Logs/AndroidStudio* |
| adb shell am | |
| usage: am [subcommand] [options] | |
| usage: am start [-D] [-W] [-P <FILE>] [--start-profiler <FILE>] | |
| [--R COUNT] [-S] [--opengl-trace] <INTENT> | |
| am startservice <INTENT> | |
| am force-stop <PACKAGE> | |
| am kill <PACKAGE> | |
| am kill-all | |
| am broadcast <INTENT> | |
| am instrument [-r] [-e <NAME> <VALUE>] [-p <FILE>] [-w] |
| /** | |
| * Graphics is the abstract base class for all graphics contexts | |
| * which allow an application to draw onto components realized on | |
| * various devices or onto off-screen images. | |
| * A Graphics object encapsulates the state information needed | |
| * for the various rendering operations that Java supports. This | |
| * state information includes: | |
| * <ul> | |
| * <li>The Component to draw on | |
| * <li>A translation origin for rendering and clipping coordinates |
| #import <Foundation/Foundation.h> | |
| @interface Communicator : NSObject <NSStreamDelegate> { | |
| @public | |
| NSString *host; | |
| int port; | |
| } | |
| - (void)setup; |
$ cd /Users/johndoe/Library/Android/sdk/emulator
$ ./emulator -list-avds
$ ./emulator -avd Pixel_2_XL_API_27
build\distributions\project-1.0-SNAPSHOT.zip\libs\ dir, you'll find the .jar file you need, extract
all you need to a dir (e.g 'mylibs')+ button > New Project Library > Java > Open mylibs/ and select all > Apply| Gradle Home: /usr/local/Cellar/gradle/4.4.1/libexec |