Failed to open directory Xamarin Forms - android

I have recently created a HelloWorld project with Xamarin Forms to develop a mobile app. But, I don't know what happen but I cannot launch the app with Android Device Manager or even my own phone, not even the first time. This is the error:
I am using android version 10.0 to compile and for the device manager the version 10.0 also. At the manifest I also have version 10.0 for Android minimum version required and Android target version. I guess the version is not the problem, but I don't know what could be because, I haven't programmed anything yet. So I don't understand why the error is "The system cannot fint the specified file". I check the access route with File Explorer of Windows and there is the directory.

Unbelievable. My windows 10 user has an accent mark on the name: Adrián. But the problem was with the path of the project, because I change the name to: Adrian, but the path was still having the accent mark: C:\Users\Adrián. So that is very probably the problem. I know I could change the username from the path, but I think it is a bit difficult than to create a new user, besides, I don't want more problems with another programs installed. I created a new windows user, obviously, without any weird character and then I could work with Xamarin Forms. I think you learn a new thing every day.

Had the same issue when my project was called Städteam1. I created a new solution and project named Stadteam1 and it works right away. So I guess avoid using any letters that aren't part of standard English in any of the folder or filenames.

Related

Android Studio Emulator - Location Routes not working since updating to Emulator 30.0.26

I am trying to use routes to test an application. I am using Android Studio 4.0.1 and emulator version 30.0.26. When I play a route it looks like it plays the first location and then two seconds after the Lat Lon change to the last location on the route. It is as thought Android emulator only recognises the first and last position.
The developer is using Android Studio 4.0.1 and emulator version 29.0.11, the same KML files and everything looks good on his system. He even gets a window that lists all the locations in the route.
I have tried to downgrade the emulator as per this post (How to downgrade Android Emulator) however Android realises that the emulator has been changed, deletes it and asks to install the new version.
I noticed in the release notes for Emulator 30.0.26 this general fix "Fixed gpx/kml route playback to follow timestamps". I assume that this means I am now required to have timestamps in my KML file. I tried my best to update the data and Emulator did not like the new file. I have also tried various tutorials on how to make KML files without any luck.
I have tried the "Showing Movement of a Point Along a Path" date set at the below link, it does the same thing. https://developers.google.com/kml/documentation/time
Does anyone know how to revert Emulator?
Is there an example KML file somewhere that I could use as a reference to confirm that Emulator is working and use as a template to update my data?
I was facing with the same problem. With the new emulator version you have to add the timestamps into kml/gpx file.
I used this website: https://gotoes.org/strava/Add_Timestamps_To_GPX.php
and it's working fine for me now!

System image folder in config.ini doesn't exist

Recently I installed Xamarin and the Android SDK in order to mess around with Android development. After spending all day fixing errors before writing a single line of code, this one has me stumped. I haven't found a solution anywhere on the internet.
I have installed the emulator and I have downloaded several system images. I have searched for this config.ini but didn't find which one the error seemed to be referencing. I can build the solution just fine but when I try to debug it just says "There were deployment errors", and in the output window just says "Error: cancelled."
Is there any way to solve this issue?
Thanks.
So I come across the same error message on my device manager. I solved it with following step:
Go to your ~\.android\avd. There should be a folder named
[YourDeviceName].avd. For my case it was Nexus_5X_API_28_x86.avd.
Inside the folder there should be a config.ini. Look for a property
named image.sysdir.1. Mine was image.sysdir.1=system-images\android-28\google_apis_playstore\x86\.
Make sure the your have properly downloaded such image in
%ANDROID_HOME%\system-images.
For me, it seems that I have installed Android SDK twice in two different locations with Android Studio & Visual Studio Xamarin installation, and they have messed up my device manager. So I uninstalled one and moved the images and it worked fine then. While this is probably a year too late for OP, I hope this could help someone in the future.
I just had the same issue.
You solve this problem like this:
Select the corresponding Android emulator device
Hit the Ellipsis character at the upper right corner of Android Device Manager
Select "Download system image" menu item
This will download the missing system images for your Android emulator.
Here are some screenshots, depicting the solution (they're in German):
I suspect Microsoft didn't add these because they're not courtesy of Google. You need to accept Google's license terms when downloading the images.

How to get the phone application new file type to show up? (eclipse)

I have installed the eclipse for android developers, when I launch it, it says that it is neon 3. I have installed the android 6 and the deafult packages from the SDK manager. When I try to create a new phone application file (acording to yourtube tutorials) it just simply doesn't show up. There are some phone related things in there, look at the screenshot.
Things that I have aleready tried:
-waiting
-restarting my PC
(I will edit this when I get an answer and it doesn't work)
My PC specifics:
-Windows 10 64-bit
(request some more specifications in the comments if you need any)
Also some of my built in tutorials don't work (I will put a link to that question after I post it)
When I try to create a new phone application file
That was never a menu option, AFAIK.
Android Activity is clearly visible, though.
Or new Project, and select Android Application from there

Error while saving a standalone application

I have reached a problem in the final stages of completing my stack. I have been working on this project for a couple months now and it is finally complete. The aim of the app is for you (as the user) to be able to have a type of calculator which performs a certain sequence of sums once a numerical value is entered. It is now finished (thank goodness! :P) but I have reached an error whilst saving this app. I am saving it as an Android application (.apk) for use on a mobile phone. I have the Android personal 1 pack, and my error is as follows:
There was an error while saving the standalone application could not compile application class
I am unsure as to why this is occurring but find it hard to believe that this could have occurred because of either invalid syntax or that a command I was using was incompatible with Android.
As I said before my stack is very simple and only performs a few basic mathematical functions (mainly multiplying contents of fields) by each other. If you wish to see this script, please request.
#ninjabunny14 yep it's a good idea to include code, actual text of error messages, details of the platform you're developing on, versions of LiveCode/Android etc
In the meantime you could Google "error while saving the standalone application could not compile application class" like I've just done and found quite a few links to LiveCode forum threads (like this one http://forums.runrev.com/phpBB2/viewtopic.php?f=53&t=12330) which look like they might be of use...
NinjaBunny,
This sounds more like an error from the Android SDK than a LiveCode error. For starters check these things in the Android settings pane in the LiveCode Standalone Applications Settings:
Identifier: It has to be unique to this application. If you've ever done a test build for Android without changing this default identifier you will get an error.
Signing: Unless you have a key, choose Sign for development only or Don't sign.
Minimum Android version: make sure you have all of the packages needed for your target version in your Android SDK.
Go to Edit/Preferences and set up the Android SDK path, which is probably empty in your case:
I had this a few times because it is easy to forget.
The identifier in the android settings does not like characters like - so do not use a name like com.itis-me.myapp , but use com.itisme.myapp
the use of a character like - gives you this error.

New Android Eclipse version won't get to workspace

I'm trying to start out with Android programming (I'm running Mac OS X Lion). I had an old version of Eclipse and installed ADT version 20 in it, and code didn't compile properly. Fine; I hadn't done much in there, and after reading some stuff here it sounded like the easiest thing for the long run would be to put together a completely new installation.
So I downloaded the latest version of Android, with the SDK, from the Android developer Getting Started site, and ran it (in its own directory). I loaded one of my previous workspaces and it said that one wouldn't work because the ADT was version 20 and it needs 21. I figured fine, there wasn't much in there and I'd just start a new workspace.
So I started a new workspace, and here's where the real trouble came: It gives me the start screen with newbie welcome instructions but won't go any further than that. When I try to create a new Android Application Project, it goes through the menus but as soon as I click Finish I get a please-wait circular icon, and little happens. There's a line at the bottom that says "66M of 142M" - it increases slowly into the 80s and then drops back down into the 60s, endlessly. And the links provided on the welcome page (Building Your First App, etc.) don't work - I click on them and nothing happens.
Any idea what's going wrong here? Is there some cruft left over in my system from older versions, which I should delete? If so, how should I go about doing that? If not, what else might I try to get it working?
I can't comment beneath yours because of my level, but you can help Eclipse run faster by giving it more memory. Doing this speeds things up quite a bit.
As far as installations go, maybe try Google's packaged version of Eclipse + Android SDK. The whole package is available here. It's already preconfigured to work and provides eclipse with ADT installed by default. Of course, if you already have an existing Eclipse you want to modify this won't help you too much. But if you're new to Eclipse it's a good way to get started with Android development.

Categories

Resources