How to use Android to simulator with Apportable [duplicate] - apportable

This question already has an answer here:
Can you install an Android Device Simulator in xcode when using Apportable
(1 answer)
Closed 9 years ago.
I have just installed Apportable and tried it out. I am trying to read the documentation but can't find any explanation how to start up generated code in Android SDK simulator? ...or is a device required for initial tests?
Could someone point me at the right direction please?

I haven't used apportable (looks like a new project for the weekend), but according to their docs (http://docs.apportable.com/cli.html#common-build-commands), if you run apportable build it will generate an APK file---the packaged application that gets installed on the device or emulator.
You can install the APK on the emulator using adb, a command line tool that is part of the Android SDK. So, first, install the Android SDK if you haven't already. Then, assuming your APK file is named sample.apk, run adb install sample.apk, and the app will be installed in your emulator.

Related

After creating a NativeScript Typescript application, I tried running it using the command "ns run android" it doesnt run and i get the output

After creating a NativeScript Typescript application, I tried running it using the command ns run android I get this output and does not run.
The ANDROID_HOME environment variable is not set or it points to a non-existent directory. You will not be able to perform any build-related operations for Android.
To be able to perform Android build-related operations, set the ANDROID_HOME variable to point to the root of your Android SDK installation directory.
WARNING: adb from the Android SDK is not installed or is not configured properly.
For Android-related operations, the NativeScript CLI will use a built-in version of adb.
To avoid possible issues with the native Android emulator, Genymotion or connected
Android devices, verify that you have installed the latest Android SDK and
its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
WARNING: The Android SDK is not installed or is not configured properly.
You will not be able to run your apps in the native emulator. To be able to run apps
in the native Android emulator, verify that you have installed the latest Android SDK
and its dependencies as described in http://developer.android.com/sdk/index.html#Requirements
Cannot find a compatible Android SDK for compilation. To be able to build for Android, install Android SDK 28 or later.
Run $ sdkmanager to manage your Android SDK versions.
No compatible version of the Android SDK Build-tools are installed on your system. You can install any version in the following range: '>=23 <=32'.
Install the required build-tools through Android Studio. In case you already have them installed, make sure the ANDROID_HOME environment variable is set correctly.
Your errors and warnings says that you haven't Android SDK and adb which one is included in the Android SDK Platform-Tools package.
First of all, you need to read this doc and complete steps in it - https://docs.nativescript.org/environment-setup.html. This documentation has everything you need, based on your operating system and the operating system you want to develop the application for.
If you already install everything docs says, check your path environment for ANDROID_HOME and adb variables presence, if not, add them. For example, my path (on MacOS) contains following lines:
/Users/sixhellstations/Library/Android/sdk/emulator:/Users/sixhellstations/Library/Android/sdk/tools:/Users/sixhellstations/Library/Android/sdk/tools/bin:/Users/sixhellstations/Library/Android/sdk/platform-tools

cordova.file.getExternalCacheDir() returns null in android 11 emulator

I am trying to test my hybrid app with android 11 emulator provided in android studio. But, on requesting filesystem, the cordova file plugin is returning null values in externalRootDirectory. In my code, I have checked this value to initialize app folder, and now it is not working.
I have used cordova android 8.0.0, cordova file plugin 6.0.2, and file transfer 1.7.0.
Do anyone have same issue while testing in android 11?
Edit:
On debugging in cordova file plugins, we find that cordova does not provide path to external cache directory in android 11 emulator. Anyone aware of this change?

how to resolve "Shader compilation error " in android emulator when using flutter [duplicate]

This question already has answers here:
Flutter 1.9: D/skia ( 5106): Shader compilation error
(11 answers)
Closed 2 years ago.
when i use Android Studio 3.5 and dart 2.5 (i used flutter for develop mobile app) ,I faced to "Shader compilation error" in android emulator.
I have no error with my code .
Somehow it worked on my side,
removed / uninstall the app in emulator
flutter clean
run again
for me flutter clean in terminal makes it go away

Android Studio 3.6 : Unable to run apk on emulator or device

After Updating Android Studio to the version 3.6, I am unable to install an app directly to device by using Run button.
It just updates the gradle and shows gradle updated popup that's it.
I tried invalidating cache and recreating the emulator device but no luck yet.
Let me know if anyone could help as am creating APK and installing it manually in emulator.
I have installed the Android Studio 3.6 and suddenly existing project stopped running. I tried the following thing and it worked.
Android Studio -> Run -> Edit Configurations -> Installation options -> Select Nothing instead of Default apk.
I am not able to post this as comment, but maybe someone finds this info useful.
I faced same problem after updating Android Studio to 3.6.1 on Mac OS.
I tried to use gradle task for installing and launching my application and I found strange log in console about missing adb in platform-tools folder.
So, as result: after update folder platform-tools was moved into folder with same name (was: sdk/platform-tools become: sdk/platform-tools/platform-tools). I just move it manually back and everything is worked as a charm.
Hope it helps.
I have installed Android Studio 3.6 yesterday. I have tried both way to install APK.
Directly by Run button. [DEVICE - Working, Emulator - Working]
Generated APK, Drag and Drop to Emulator. (Its also working)
Hope It will work for you too. Just drag n drop APK file to emulator.
Bonus - May your emulator is older, You can update your Emulator from
SDK Manager and Create New.

Android Studio project doesn't run on devices

Currently I'm making some android applications by Android studio.
My application working on emulator so fine but when I generate apk file for install on android devices any project doesn't run and they crash.
I tired to search for find answer or suggestion for fin this problem but I didn't find anything.
Can you tell me how can I fix this problem?

Resources