Running flutter project on android device - android

Does anyone know how to fix this error?:
[ +91 ms] Not watching D:\Code\flutter projects\icag_app\android since the file system is not supported
I tried reinstalling Android Studio but i'm still getting the same error.

Related

Flutter error: Lost connection to device. How to solve it?

I have this error that I've been stuck with for months. I have no idea what's causing it or how to go about solving it. Somehow it won't connect with the emulator. It's either this or "Error connecting to service protocol".
The error below:
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Warning: This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.
Warning: unexpected element (uri:"", local:"base-extension"). Expected elements are <{}codename>,<{}layoutlib>,<{}api-level>
√ Built build\app\outputs\flutter-apk\app-debug.apk.
W/FlutterActivityAndFragmentDelegate( 5440): A splash screen was provided to Flutter, but this is deprecated. See flutter.dev/go/android-splash-migration for migration steps.
D/FlutterLocationService( 5440): Creating service.
D/FlutterLocationService( 5440): Binding to location service.
Lost connection to device.
What I've checked so far:
Memory is enough
flutter doctor -v shows no issues

Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found - Flutter Notifications Plugin

I am trying to run a flutter project in my Mac mini, which works perfectly for android, but I'm getting this error:
"Lexical or Preprocessor Issue (Xcode): 'Flutter/Flutter.h' file not found
/Users/nitant/.pub-cache/hosted/pub.dev/flutter_local_notifications-12.0.3/ios/Classes/FlutterLocalNotificationsPlugin.h:0:8
Could not build the application for the simulator.
Error launching application on iPhone 14 Pro Max."
I have tried every solution mentioned https://www.kindacode.com/article/flutter-fatal-error-flutter-flutter-h-file-not-found/ and others in stack overflow, but nothing seems to work. Any idea why I'm seeing this error? I also tried different versions of flutter and different package versions. Please help me out.
Thanks!
Try to repair your pub cache: dart pub cache repair

Cannot run Flutter project in Android Studio while using Android Virtual Device (AVD)

I am a newbie at StackOverflow so if I made some mistakes, I am very sorry, and please correct me.
So I am currently learning Flutter in Android Studio.
Before I go on, I need to inform you that somehow my Windows 10 cannot download properly after being updated. For instance, when I am downloading UnitySetup64.exe, the download was disconnected suddenly and tells "could not download properly".
The same thing when I was downloading Unity Editor from Unity Hub (yes, I also make video games, sorry this a bit out of context, just describing what happened to me overall). So, I cannot download Unity Editor from Unity Hub.
This also affects Android Studio. I could not download SDKs etc. from Android Studio smoothly. Then, I managed to download (maybe) most of the essential kinds of stuff to develop the Flutter project in Android Studio (means I succeeded in downloading SDKs, etc.) by repeatedly trying to download things until the download reached 100%.
I also made sure that there is no trouble in Flutter, by running flutter doctor -v. It is said that there is no problem on Flutter at all.
However, when I tried to run my project using Android Virtual Device, the console shows this:
Launching lib\main.dart on sdk gphone x86 arm in debug mode...
Running Gradle task 'assembleDebug'...
Exception in thread "main" javax.net.ssl.SSLException: Tag mismatch!
at java.base/sun.security.ssl.Alert.createSSLException(Alert.java:133)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:326)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:269)
at java.base/sun.security.ssl.TransportContext.fatal(TransportContext.java:264)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:122)
at java.base/sun.security.ssl.SSLSocketImpl.decode(SSLSocketImpl.java:1406)
at java.base/sun.security.ssl.SSLSocketImpl.readApplicationRecord(SSLSocketImpl.java:1371)
at java.base/sun.security.ssl.SSLSocketImpl$AppInputStream.read(SSLSocketImpl.java:958)
at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:290)
at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:351)
at java.base/sun.net.www.MeteredStream.read(MeteredStream.java:134)
at java.base/java.io.FilterInputStream.read(FilterInputStream.java:133)
at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3510)
at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3503)
at org.gradle.wrapper.Download.downloadInternal(Download.java:62)
at org.gradle.wrapper.Download.download(Download.java:44)
at org.gradle.wrapper.Install$1.call(Install.java:61)
at org.gradle.wrapper.Install$1.call(Install.java:48)
at org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:48)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:128)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:61)
Caused by: javax.crypto.AEADBadTagException: Tag mismatch!
at java.base/com.sun.crypto.provider.GaloisCounterMode.decryptFinal(GaloisCounterMode.java:623)
at java.base/com.sun.crypto.provider.CipherCore.finalNoPadding(CipherCore.java:1116)
at java.base/com.sun.crypto.provider.CipherCore.fillOutputBuffer(CipherCore.java:1053)
at java.base/com.sun.crypto.provider.CipherCore.doFinal(CipherCore.java:941)
at java.base/com.sun.crypto.provider.AESCipher.engineDoFinal(AESCipher.java:491)
at java.base/javax.crypto.CipherSpi.bufferCrypt(CipherSpi.java:779)
at java.base/javax.crypto.CipherSpi.engineDoFinal(CipherSpi.java:730)
at java.base/javax.crypto.Cipher.doFinal(Cipher.java:2497)
at java.base/sun.security.ssl.SSLCipher$T12GcmReadCipherGenerator$GcmReadCipher.decrypt(SSLCipher.java:1629)
at java.base/sun.security.ssl.SSLSocketInputRecord.decodeInputRecord(SSLSocketInputRecord.java:260)
at java.base/sun.security.ssl.SSLSocketInputRecord.decode(SSLSocketInputRecord.java:181)
at java.base/sun.security.ssl.SSLTransport.decode(SSLTransport.java:110)
... 17 more
Exception: Gradle task assembleDebug failed with exit code 1
Any suggestion or help is highly appreciated since I do not know what to check or download anymore to make my project running with the AVD.

Xamarin Forms 5 compiling to android not working

After updating my project to Xamarin Forms 5.0 I cant run it on my phone. I tried a blank Xamarin Forms 5.0 project and it worked, but my real project prints "Deployment was successful to [Device]" but nothing happends. It installs the app but it is corrupted or something, because the app is not visible on home screen, but exists in "settings > app" with no icon (and the size 154mb as it should be)
I have no idea what causes this and have tried everything to make it run on my phone. When archiving it I get "Cannot create archive file because the copy of mdbs files failed"
I get no compile errors when I press Build -> Build solution
I have tried deleting the app via adb/system and reinstalling it via vs.
I have tried removing the obj and bin folders and rebuilding.
I have tried rebooting and reinstalling android sdk.
I have tried restarting the android abs server
My phone is android-28 and the minsdk is 21, targetsdk is 29
(Xamarin.Forms v5.0.0.1874, Xamarin.Essentials v1.6.0, Visual Studio 2019 v16.8.4)
full build log when trying to debug: https://pastebin.com/dgqQvh24
1>Deployment was successful to [DEVICE].
This issue was caused by an invalid AndroidManifest.xml file. Simply removing a duplicate tag caused the build to succeed. For some reason xamarin forms 4.8 ignored this in the building process, but xamarin forms 5 "Failed to parse Activity Name" because of the duplicate tag.
For anyone expericing this issue just fix the AndroidManifest.xml

ERROR Application Installer abnormal process termination. Process exit value was 1, ERROR : Found conflicting resources

I am using latest Titanium Studio version and i have imported an android project which is developed using JavaScript.
I have installed all the Android SDK's.
when i am running the project using android emulator i am facing this issue
[INFO] : Emulator is booted
[INFO] : SD card not required, skipping mount check
[INFO] : Emulator ready!
**[ERROR]: Application Installer abnormal process termination. Process exit value was 1, [ERROR]: Found conflicting resources**
I am not able to trace out what is causing this issue.
Any suggestions is appreciated.
Thanks
delete the application from the emulator and re-install it. That usually resolves the issue for me.
I finally found the issue.. i had few images with same name in different folders, when deleted, it got fixed and app is running now. Thanks!
The problem is file with same name but different extension. You can however have same file name in different folders

Categories

Resources