Using visual studio 15.7.4
Xamarin 4.10.10.2
Xamarin forms project
compile version api level 26
target android version api level 26
release mode
sdk link assemblies only
using Xamarin forms 3.1.0
Issue:
app starts fine (although long startup time) in debug mode. After installed to 2 different real phones the app splash screen shows on launch but hangs indefinitely
The solution for me was to enable "Zipalign" on the "Signing and aligning APK file(s)" task in my Xamarin Android build definition on Azure Devops (previously VSTS). I got the answer from here
This turned out to be something with the build definition in VSTS, as it worked when built right from Visual Studio
Related
We built an iPad app few years ago using Unity 5.2.1 where it loads 3d models using asset bundles and user can perform different actions on the model.
Now the client wants to build the same app to support Windows 10 tabs/desktops.
Since we have to use the same assetbundles already build, I will have to use the same Unity version. So I tried to build a Unity 5.2.1 sample to Windows store (Universal 10- xaml). But sometimes I am getting errors in Unity when trying to build that and sometimes it get build but when I try to run it in visual studio 2017 I get errors.
So I wasn't sure whether there is any limitation on building an app from Unity 5.2.1 for Visual studio 2017 for Uwp.
Does Unity 5.2.1 support creating a UWP app to run with Visual studio 2017 or are there any limitations on the Unity versions?
Should I be able to do that work if I get the errors resolved?
TLDR: ionic 3 app, cordova 8, windows 10. cordova-platform is android and windows. Can run on android simulator and devices with VS Code. VS 2017 forces cordova 6.3.1 and doesn't work with cordova 8, but is needed for UWP (is it?). Would like to run ionic 3 app as UWP in windows simulator without usage of VS 2017. How? :/
I am working on an ionic 3 app. I installed the v8 of the cordova cli and I can run and debug the app with VS Code on Android. I use the Visual Studio Emulator for Android which works great.
I also want to run and debug the app build as a UWP-App. I can do that with Visual Studio 2017 with installed Tools for Apache Cordova - but it forces cordova 6.3.1. If I open the project with VS 2017 and I check the config.xml I can choose between cordova 6.3.1 (comes shipped with VS 2017) or the global cordova cli (which is my installed v8). If I set the global cli I can start the UWP-App in a Simulator. If I close VS, reopen the project it tells me that it's not compatible and I need to choose if the project should be converted. If I say yes the project is set to cordova cli 6.3.1 and older cordova-android and cordova-windows packages are added.
Of course, I do not want that (mess with config.xml, use older versions). I would like to use the cordova/ionic cli to start a UWP-App without Visual Studio 2017.
How can I do that? Thanks for any advice :)
I wasn't able to use the ionic cli to start a UWP-App inside an simulator. But I was able to get VS 2017 work with ionic 3 (and VS 2017 starts the UWP-App inside an Simulator)!
To let VS 2017 work with a global cordova 8 installation you need to:
Force cordova toolsetVersion to 8.0.0 (https://github.com/hamburml/ionic3-vs2017-blank-template/blob/master/ion3/config.xml#L84)
Set your global node v8 or higher installation as external tool (Tools - Options - Projects and Solutions - Web Package Management) and move it to the top. VS doesn't use the old node anymore.
See https://github.com/hamburml/ionic3-vs2017-blank-template
I was having trouble using the Android emulator in Visual Studio Community 2017 and I decided to create a blank project to see if it will run. I get this error message when attempting to run it in the Live Xamarin Player:
Starting Android Emulator Android_Accelerated_x86_Nougat...
Failed to boot Android device emulator-5554...
Unable to deploy to Android_Accelerated_x86_Nougat, please ensure the Xamarin
Live Player app is open and the device is on the same network as Visual Studio.
Why would I have trouble running the emulator in a fresh blank project when I didn't even write a single line of code? Thanks for your help.
UPDATE: So I installed the latest Android SDK 8.0 along with they system image and tried to create a virtual device that uses it. But the Android Virtual Device Manager shows a, 'No system images installed' message when I selected the 8.0 framework. So I installed an earlier version of the SDK along with a system image (5) and was able to create a virtual device with it. So another question is why wouldn't the system images show up for the 8.0 framework?
The $(TargetFrameworkVersion) for Xamarin.Forms.Platform.Android.dll
(vv8.0) is greater than the $(TargetFrameworkVersion) for your project
(v7.1). You need to increase the $(TargetFrameworkVersion) for your
project
This means the Xamarin.Forms library is targeting Android 8.0 (API level 26) but your project is setup for Android 7.1 (API level 25). You can't change the Xamarin.Forms target version without downgrading, but you can change your project target version easily. You can learn more about these concepts from Xamarin. Be aware some of the details of that Xamarin blog post are already out of date!
There is another nice blog post from Xamarin which can walk you through the process of setting your system up for Android 8.0 API level 26. It's normally not this complicated, but Google changed their SDK tools internally between 25 and 26 in very major ways. They changed from GUI tools to command line tools.
You'll probably also want to get the (in preview) Xamarin Android Device Manager if you don't have a physical device to test with. This Xamarin Android Device Manager tool is the only way to create and configure API 26 and higher emulators without using the Google command line tools.
It seems as though Google has gotten rid of the GUI apps that manage the SDK and Virtual Devices in the latest version, so when you try to create a new virtual device with 8.0 it's not compatible with the GUI tools. Until Xamarin releases a GUI tool to replace them we can use the command-line to manage the SDK and virtual devices.
https://learn.microsoft.com/en-us/xamarin/android/troubleshooting/sdk-cli-tooling-changes
https://developer.android.com/studio/command-line/avdmanager.html
I am using VS 2015 enterprise update 3. After fresh installation, I created a new project--> cross platform tools--> Blank Xaml App(Xamarin.Forms Portable). then made Andriod project is default project from Solution explorer.
Tried select a device but none is available, altough when i open SDK Manager i can see 3 devices.
Andriod error
List of devices
Did you setup your android project as your startup project?
Werid because in your screenshot it shows your portable project as your startup project. This is how it looks like when i debug my android project.
Hello searched various sources on how to run my application on an iOS simulator or run the application on an iOS device by visual studio , but from what I understand I need to have a Mac.
main source:
VISUAL DOCS
Yes - that's correct. To build for iOS devices from Visual Studio, you do need to setup a Mac build server. You can either follow the instructions on the page that you linked to, or take a look at the steps on the same site to use a Cloud-hosted service, MacInCloud