here is error
Here's the full error from the debug console:
Launching lib\main.dart on Android SDK built for x86 in debug mode...
Built build\app\outputs\apk\debug\app-debug.apk.
I/FlutterActivityDelegate( 4158): onResume setting current activity to this
D/ ( 4158): HostConnection::get() New Host Connection established 0xdc74b680, tid 4178
D/EGL_emulation( 4158): eglMakeCurrent: 0xdc741300: ver 2 0 (tinfo 0xdc74c480)
F/libc ( 4158): Fatal signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd in tid 4177 (Thread-2), pid 4158 (le.startupnamer)
Build fingerprint: 'google/sdk_gphone_x86/generic_x86:9/PPP4.180612.007/4860066:userdebug/dev-keys'
Revision: '0'
ABI: 'x86'
pid: 4158, tid: 4177, name: Thread-2 >>> com.example.startupnamer <<<
signal 11 (SIGSEGV), code 1 (SEGV_MAPERR), fault addr 0xd
Cause: null pointer dereference
eax ca0a8aac ebx ca0a8aac ecx 0000000a edx c9046c80
edi de6638d0 esi c90479f8
ebp c9046b58 esp c9046b58 eip c96e31d8
backtrace:
#00 pc 006981d8 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#01 pc 008f5b75 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#02 pc 008e87ea /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#03 pc 008f3ad6 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#04 pc 008e8b2f /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#05 pc 008ffb03 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#06 pc 008eb310 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#07 pc 008f3d98 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#08 pc 008e8b2f /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#09 pc 008eafc8 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#10 pc 008f997f /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#11 pc 008eaff8 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#12 pc 008fc81c /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#13 pc 008eaf69 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#14 pc 008f997f /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#15 pc 008eaff8 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#16 pc 008ef41e /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#17 pc 008f0570 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#18 pc 0091433e /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#19 pc 0092fad4 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#20 pc 00932f2a /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#21 pc 00934573 /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#22 pc 00933d2b /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#23 pc 0093004a /data/app/com.example.startupnamer-Doz3k_Pl0QfJtnmxYqiyHg==/lib/x86/libflutter.so
#24 pc 0000056b anonymous:c7680000
Lost connection to device.
Exited (sigterm)
I'm using Visual Studio Code with the Flutter extension, but without the Dart extension. I'm also trying to run my Flutter app on an Android emulator, which is a Nexus 6 with API 28 x86. Emulated performance is set to "Hardware - GLES 2.0". The rest of the settings are left as default.
I Cold Boot the emulator before using it with Flutter, due to adb connection problems that prevent the emulator from loading if I start the emulator normally. Possibly not related, but good to note anyway.
Typing flutter doctor -v into the command line will show the following:
[√] Flutter (Channel beta, v0.5.1, on Microsoft Windows [Version 10.0.17134.112], locale en-AU)
• Flutter version 0.5.1 at C:\dev\flutter
• Framework revision c7ea3ca377 (6 weeks ago), 2018-05-29 21:07:33 +0200
• Engine revision 1ed25ca7b7
• Dart version 2.0.0-dev.58.0.flutter-f981f09760
[√] Android toolchain - develop for Android devices (Android SDK 28.0.1)
• Android SDK at C:\Android\android-sdk
• Android NDK location not configured (optional; useful for native profiling support)
• Platform android-28, build-tools 28.0.1
• ANDROID_HOME = C:\Android\android-sdk
• Java binary at: C:\Program Files\Android\Android Studio\jre\bin\java
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
• All Android licenses accepted.
[√] Android Studio (version 3.1)
• Android Studio at C:\Program Files\Android\Android Studio
• Flutter plugin version 26.0.1
• Dart plugin version 173.4700
• Java version OpenJDK Runtime Environment (build 1.8.0_152-release-1024-b02)
[√] IntelliJ IDEA Community Edition (version 2018.1)
• IntelliJ at C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2018.1.2
• Flutter plugin version 26.0.2
• Dart plugin version 181.4668.60
[!] VS Code, 64-bit edition (version 1.25.0)
• VS Code at C:\Program Files\Microsoft VS Code
• Flutter extension not installed; install from
https://marketplace.visualstudio.com/items?itemName=Dart-Code.flutter
[!] Connected devices
! No devices available
! Doctor found issues in 2 categories.
Now for the actual problem:
When I load my Flutter app, no matter what kind of state the code is in, the app launches from the state it was in when I saved it for the first time after creation. If I try to make any change to the code (I simply change the theme color) and try to Hot Reload, the app crashes with the error I posted above. Why does this happen, and what can I do to fix this?
Related
I have been getting the below error for a while now. I have tried all possible options that are available on various blogs to do with appinitializer. I have also tried to run the same xamarin UI test from USB connected local device and on visual studio Kit Kat emulator. However for some reason I get the below said error with each and every device/emulator and any appinitializer setting. I am using Visual Studio 2017 latest update and xamarin corss platform project with git source control. I had to move my android SDK on a different drive due to space constraint on C drive. I have changed the registry key for Android SDK and this doesn't solve the error. (Not sure if this could have been cause of failure)
Even if i dont run my test and just run the below command, i get same error and adb.exe process crashes:
E:\Android\android-sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages -f -e
The interesting bit is everything works fine on Mac.
I have raised this with Xamarin developers support however haven't heard fro them yet!!!!
Any help is highly appreciated!!
SetUp : System.Exception : Failed to execute:
E:\Android\android-sdk\platform-tools\adb.exe -s emulator-5554 shell pm list packages -f -e - exit code: -1073740940
package:/data/app/SmokeTestApp/SmokeTestApp.apk=com.android.smoketest
package:/data/app/WidgetPreview/WidgetPreview.apk=com.android.widgetpreview
at Xamarin.UITest.Shared.Processes.ProcessRunner.Run(String path, String arguments, IEnumerable`1 noExceptionOnExitCodes)
at Xamarin.UITest.Shared.Android.Adb.AdbProcessRunner.Run(String adbArguments, Int32[] noExceptionsOnExitCodes)
at Xamarin.UITest.Shared.Android.Queries.QueryAdbInstalledPackages.Execute(AdbProcessRunner processRunner)
at Xamarin.UITest.Shared.Android.LocalAndroidAppLifeCycle.EnsureInstalled(String appPackageName, ApkFile testServerApkFile)
at Xamarin.UITest.Android.AndroidApp..ctor(IAndroidAppConfiguration appConfiguration, IExecutor executor)
at Xamarin.UITest.Configuration.AndroidAppConfigurator.StartApp(AppDataMode appDataMode)
at iBCU.UI.Test.AppInitializer.StartApp(Platform platform) in C:\Users\Source\Repos\Test\AppInitializer.cs:line 15
at UI.Test.Tests.BeforeEachTest() in C:\Users\Source\Repos\Tests.cs:line 26
Full log file: C:\Users\AppData\Local\Temp\uitest\log-2017-07-13_13-58-38-861.txt
Skipped IDE integration, connection failed.
Android test running Xamarin.UITest version: 2.0.9
Initializing Android app on device emulator-5554 with installed app: com.bcu.ibcu.activities
Skipping local screenshots. Can be enabled with EnableScreenshots() when configuring app.
Signing apk with Xamarin keystore.
It worked for me when I replaced the SDK platform tools with the 23 version.
You can download it here:
https://dl.google.com/android/repository/platform-tools_r23-windows.zip
I'm trying to figure out with Xamarin Android Blank Application basics. I use Visual Studio 2015 and C# on PC Windows 10
But each time I make some changes in my code, I got deployment errors massage window with debugging and can't run emulator through time. If I start a new project with copy/paste of MainActivity.cs content from broken project and proper Main.axml interface, same code works. then if I add something new to new project code, or just restart VS deployment errors appears again, with only output below. Not sure what I'm doing wrong, rebuild does not helps in this case
1>------ Build started: Project: Android_App, Configuration: Debug Any CPU ------
1> Android_App -> D:\folder\Android_App\bin\Debug\Android_App.dll
1> Processing: obj\Debug\res\layout\main.xml
1> Processing: obj\Debug\res\values\strings.xml
2>Please select a valid device before running the application.
2>------ Deploy started: Project: Android_App, Configuration: Debug Any CPU ------
2>Error: Cancelled
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
So, now I'm trying to run into device:
I've installed Android SDK with Android SDK Manager from Visual Studio
Build Number
Developer Options, USB debugging
USB Connection by default I checked Media Device (MPT)
Google USB driver is also installed and it is inside C:\Users\User\AppData\Local\Xamarin\MonoForAndroid\AndroidSDK\extras\google\usb_driver
in my Device Manager after Updating of Driver Software and Browse my Computer for Driver Software by path above with include sub folders checking, I see Portable Device/MyPhone and Samsung Android Phone/Samsung Android ADB Interface.
I did not installed driver for my Samsung Phone because I already can see new category Samsung Android Phone/Samsung Android ADB Interface I guess
So in Devices of Android Device Monitor I see my Phone as number not the name, and its status is Online
In VS2015 it is checked now as Samsung SM-G3815 (Android 4.2 - API 17)) for Android_App1, where is also: Android_Accelerated_x86 (Android 6.0 - API 23) and Android_ARMv7a (Android 6.0 - API 23)
Deployment error is gone, but it's just starts debug without any window and automatically stops debugging process in few seconds.
In Solutions Properties/Application:
Compile using Android version: Use Latest Platform (Android
6.0(Marshmallow))
Minimum Android to target: Android 4.1 (API Level 16 - Jelly Bean)
Target Android Version: Use Compile using SDK version
and same result with Minimum Android to target: Android 4.2 (API Level 16 - Jelly Bean) and Compile using Android version has only Use Latest Platform (Android 6.0(Marshmallow))
So I'm not sure how to go further, how to run it
Edit:
logcat final line:
02-22 22:13:03.843 Samsung SM-G3815 Warning 31153 System.err at com.ksmobile.business.sdk.data_manage.k.run(DataManager.java:109)02-22 22:36:04.811 D/Mono (32250): AOT module '/Users/builder/data/lanes/3511/501e63ce/source/monodroid/builds/install/mono-armv7/lib/mono/aot-cache/arm/System.Collections.dll.so' not found: Cannot load library: load_library(linker.cpp:746): library "/data/app-lib/Android_App1.Android_App1-8/libaot-System.Collections.dll.so" not found
and there is also a lot of different errors, not only these:
02-22 22:31:05.091 Samsung SM-G3815 Error 1340 Auth at com.google.android.gms.auth.be.o.a(:com.google.android.gms:260)
02-22 22:31:05.091 Samsung SM-G3815 Error 1340 Auth at com.google.android.gms.auth.firstparty.dataservice.x.a(:com.google.android.gms:558)
02-22 22:31:05.091 Samsung SM-G3815 Error 1340 Auth at com.google.android.gms.auth.o.a(:com.google.android.gms:276)
02-22 22:31:05.091 Samsung SM-G3815 Error 1340 Auth at com.google.android.gms.auth.o.a(:com.google.android.gms:196)
You have to check the output build logs by extending the trace log.
Go to tools->xamarin->output verbosity, set level to diagnostic and check the detailed build error you have.
As described here I am having difficulty porting my existing working Android games, developed using MonoGame, to Nokia X.
OpenTK does not appear to be able to detect the device capabilities properly, or something similar:
OpenTK.Platform.Android.EglException: Failed to find a valid GraphicsMode configuration
at OpenTK.Platform.Android.AndroidGraphicsMode.ChooseConfig (Javax.Microedition.Khronos.Egl.EGLDisplay display) [0x0035c] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGraphicsMode.cs:186
at OpenTK.Platform.Android.AndroidGraphicsMode.Initialize (Javax.Microedition.Khronos.Egl.EGLDisplay display, Int32 version) [0x0000a] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGraphicsMode.cs:223
at OpenTK.Platform.Android.AndroidGraphicsContext.Init (OpenTK.Graphics.GraphicsMode mode, IWindowInfo win, IGraphicsContext sharedContext, Int32 major, GraphicsContextFlags flags) [0x000a9] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGraphicsContext.cs:114
at OpenTK.Platform.Android.AndroidGraphicsContext..ctor (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext sharedContext, GLContextVersion glesVersion, GraphicsContextFlags flags) [0x00015] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGraphicsContext.cs:88
at OpenTK.Platform.Android.AndroidGraphicsContext.CreateGraphicsContext (OpenTK.Graphics.GraphicsMode mode, IWindowInfo window, IGraphicsContext sharedContext, GLContextVersion glVersion, GraphicsContextFlags flags) [0x00007] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGraphicsContext.cs:50
at OpenTK.Platform.Android.AndroidGameView.CreateContext () [0x0001b] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGameView.cs:314
at OpenTK.Platform.Android.AndroidGameView.CreateFrameBuffer () [0x00002] in /Users/builder/data/lanes/monodroid-mlion-monodroid-4.10.1-branch/9d03ce3e/source/monodroid/src/OpenGLES/Android/AndroidGameView.cs:165
at Microsoft.Xna.Framework.AndroidGameWindow.CreateFrameBuffer () [0x0003f] in /Users/paulharman/MonoGame/MonoGame.Framework/Android/AndroidGameWindow.cs:164
I'm asking for an 800x480 screen (which is the native screen size of the device) and Color mode (8,8,8,8) - although MonoGame itself tries various fallbacks to simpler bit depths, stencils etc. but nothing seems to work.
Has anyone else seen this issue and have an idea of what might be wrong?
I am using the tip of MonoGame (develop branch) as of the time of writing. Xamarin details:
=== Xamarin Studio ===
Version 4.2.3 (build 54)
Installation UUID: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
Runtime:
Mono 3.2.6 ((no/9b58377)
GTK+ 2.24.23 theme: Raleigh
GTK# (2.12.0.0)
Package version: 302060000
=== Apple Developer Tools ===
Xcode 5.0.2 (3335.32)
Build 5A3005
=== Xamarin.Mac ===
Xamarin.Mac: Not Installed
=== Xamarin.iOS ===
Version: 7.0.6.168 (Business Edition)
Hash: 2ed9bc9
Branch:
Build date: 2014-21-01 06:33:05-0500
=== Xamarin.Android ===
Version: 4.10.1 (Business Edition)
Android SDK: /Users/paulharman/Library/Developer/Xamarin/android-sdk-mac_x86
Supported Android versions:
1.6 (API level 4)
2.1 (API level 7)
2.2 (API level 8)
2.3 (API level 10)
3.1 (API level 12)
3.2 (API level 13)
4.0 (API level 14)
4.0.3 (API level 15)
4.1 (API level 16)
4.2 (API level 17)
4.4 (API level 19)
Java SDK: /usr
java version "1.6.0_65"
Java(TM) SE Runtime Environment (build 1.6.0_65-b14-462-11M4609)
Java HotSpot(TM) 64-Bit Server VM (build 20.65-b04-462, mixed mode)
=== Build Information ===
Release ID: 402030054
Git revision: f3fd2a8582693cd1728166bcfc17056235cb5b05
Build date: 2014-02-03 17:26:56+0000
Xamarin addins: b992974cc7bee7713bba6abaf2b4fac94e67dd1c
=== Operating System ===
Mac OS X 10.9.1
Darwin HOSTNAME 13.0.0 Darwin Kernel Version 13.0.0
Thu Sep 19 22:22:27 PDT 2013
root:xnu-2422.1.72~6/RELEASE_X86_64 x86_64
I know it is slightly out of date, but I recently received the same error on Android Virtual Device, so I figured out that I can post how I solved it.
Have you tried to use hardware GPU in the Android Virtual Device settings? [open Android Emulator Manager, pick your AVD and click edit, then make sure that the checkbox next to "Use Host GPU" is ticked]
I had the same error with my game, but then I turned this option on and it works perfectly without any flaws. I'm using MonoGame in my development, but maybe this will work for you too.
I'm not sure if Nokia X emulator has this hardware GPU support though.
As a follow up to this report, Paul kindly collaborated with Nokia to analyze the suspected issues mentioned in the original question.
As a result of the investigation, we mutually concluded that the specific findings above from the app are not Nokia X specific, yet are reproducing on other Android devices as well.
I recommend this issue to be closed.
Petro Soininen
Head of Developer Support
Nokia Developer Relations
I am new to windows phone 8 development
This is my system config
I am using Windows 8.1 pro
This is my Hardware Config
Processor: Pentium(R) Dual-Core CPU E5700 # 3.00GHz 3.00Ghz
Installed memory(RAM) : 4.00 GB
System Type: 64-bit Operating System, x64-based processor
And to enable emulator i tried many ways in But Failed.
This is my CoreInfo
And I referred This Article
But I got this as response:
and this one when I Run Machine Status Check
Is there Any way to do Windows Phone 8 application development on this type of system?
If I use VMWare, Can I get out this error?
Your CPU does not support SLAT so there is no way to install the emulator.
Your CPU Specs
I am unnable to deploy apps/connnec to to my device on my notebook.
Problem description:
VS 2012 update 3, project is wp7, freshly installed
Windows 8.1 Enterprise (fully updated), freshly installed
HTC titan 7.8
sometimes I can deploy but like in 1:100
turning off wifi does not have any effect
mostly I get an error in VS: "This operation returned because the timeout period expired."
I can connect with wpconnect.exe(it takes a while) but I am still unnable to deploy in VS (timeout error)
I do not have any problems in device manager
Device manager shows Portable devices/HTC TITAN - LB
I can deploy on my other PC (also running W8.1 and with the same phone and cable and VS 2012 update 3), but not on my notebook
zune (newest one) mostly does not recognize phone at all, just showing "device"
, sometimes it detects my phone (sync relation guest)
with zune running and phone recognized the VS 2012 shows: "Failed to connect to the device. Ensure that the device is completely booted and is connected to the PC" (phone is fysically connected and unlocked in homescreen)
if zune is running and phone is not recognized (showing "device" instead of "phone") VS shows timeout error
Any suggestions? Thank you for your time.