I can’t run the demo flutter app on live device - android

When I run demo app for first time in Flutter VS Code editor. It gives me an error.I am using LG G5 with Oreo 8.0.0 as device for testing. I am attaching screenshot of error and the build.gradle file. Please help.
Here are image links which I have also posted on Hashnode
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211939604/MGPN2sCOe.png?auto=format&q=60
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211949952/SbEQUkqXr.png?auto=format&q=60
https://cdn.hashnode.com/res/hashnode/image/upload/v1589211951887/cWCdiB6PS.png?auto=format&q=60

Related

Android Studio Flutter Manifest Multiple Errors

I am an intermediate Android Apps developer who uses java. Recently I tried to switch to Flutter and default app works fine debug on my cell phone through cable.
I just happened to look at Android Manifest and there are multiple error showing:
But to my surprise it shows no error on device.
I have set Flutter, dart and git path already. It would be nice if someone can help with theses errors.
This is normal since you are operating on a Flutter project, and not an Android one.
Try to Open the project from your-app-folder/android.

when i use "tns preview" to start an android emulator i get an error code

i want to preview my nativescript code on an android emulator which as i use the command line which is, i navigated to my app folder which which was successfully but when i type "tns preview" to run an android emulator to see my code in action i get
Found peer TypeScript 3.1.6
#
# Fatal
process OOM in insufficient memory to create an Isolate
#
TypeScript compiler failed with exit code 3221225477
and an android emulator is connected successfully, even nativescript notice the emulator, please what do i do
i have tried the Nativescript sidekick to start the emulator but the nativescript sees the android emulator and it did not report an error indication but when i select the android emulator and click "Run on Device" i get
Build failed. TypeScript compiler failed with exit code 3221225477
even i have tried using my android device for previewing it which i install the nativescript playground & nativescript preview but if i scan the QR Code it is not previewing, please help out
please i need a solution
Preview is to be used with real device for quick testing. The basic idea is to avoid setting up whole iOS / Android SDKs on your local machine.
Produces a QR code which can be used to preview the app on a device without the need to install various SDKs and tools or configure your environment for local iOS or Android development.
To scan the QR code and deploy your app on a device, you need to have
the NativeScript Playground app:
App Store (iOS):
https://itunes.apple.com/us/app/nativescript-playground/id1263543946?mt=8&ls=1
Google Play (Android):
https://play.google.com/store/apps/details?id=org.nativescript.play
If you want to view your app on your android emulator, run the command
'tns run android --emulator'
This is assuming you already have an emulator set up on your machine.
To see a list of your available devices run the command
'tns device'
If you have not set up an emulator follow setup here: https://docs.nativescript.org/tooling/android-virtual-devices

Python android app crashes after PIL.Image.open()

I'm developing an app with Python that reads images with Pillow. It works fine on Windows but it crashes when I am running it on Android tablet (the app is built with buildozer). It crashes when this line is called:
image = PIL.Image.open(filename)
I tried to log the error but I got nothing.
NB: the filename is correct and Pillow is in the requirements in the buildozer.spec file.
Someone could help me to understand ?
Thanks!

Unity Android KitKat application stopped issue

I'm trying to get Unity3d project working on Android KitKat device. I installed APK on device and during launching got error:
application stopped
Than I figured out that problem not in my project's code but in starting Activity which is generated by Unity. I've caught following exception:
Unable to start activity
ComponentInfo{com.getFire.plugin/com.unity3d.player.UnityPlayerNativeActivity}:
java.lang.NullPointerExсeption
To confirm that, I've created empty project from a scratch - but the error still occurs.
Here is screenshot of Unity empty project:
Enviroment:
Unity3d 3.5.7 Nexus 5 4.4.2
It also can be reproduced on KitKat emulator.
Note: It works fine for all other devices < Android 4.4
Any help very appreciated.
Are you using the ART runtime? Unity3D does not work with ART yet, here are two links about that.
Feedback posted in Unity3D to ask for support for ART here: http://feedback.unity3d.com/suggestions/add-support-for-art-runtime-on-android
Also this forum post that talks a bit about Unity3D and ART, but there are no solutions: http://forum.unity3d.com/threads/questions-about-android-4-4.215508/
If you are using Dalvik, then I don't know what it might be.
You can check if you're using Dalvik or ART in the Developer options in Settings. The option is called "Select runtime".

PhoneGap beginner issue with launching an sample app

I started with PhoneGap in Eclipse and made a basic app with some basic paragraph text...and it works fine in my emulator and real device (android os) ...but now I tried with some sample projects for the the PhoneGap 2.x Mobile Application Dev. Hotspot - from here
https://github.com/photokandyStudios/PhoneGap-HotShot-Book-Code-Bundle
and when I run the projects in my emulator or real devices it comes to 'Connecting to device' splashscreen and it never ends.
The same thing happened with the demo example coming in phonegap - only the splashscreen says "Device is ready".
I just want to note that I resolved the issue. Namely it was related to the github repo folder organization...just copy/paste the chapterXX/www folder to chapterXX/android/assets folder...it works then fine

Categories

Resources