I have an existing android application which is written in Xamarin Android. when I Adhoc distribute the APK I am able to install the APK on an emulator. However when I try to install the apk on a device I get the following error
Starts installing and then Application cannot be installed. USB debugging enabled and allow application from unknown sources is enabled.
My project properties look like this
Package signing is blank i.e, default
When I do build acrhive and save the apk. I can take the apk and run on an emulator on a different machine however when i try to install the apk on a device it fails with error 'Application not installed'
I am really new to this guys, any help is greatly appreciated. I bet i am missing something simple.
You should sign your APK. Unsigned APK cannot be installed on the real device. Check here how to sign Xamarin Android app.
I figured it out guys. You have to go into play store settings and click play protect and settings. Disable the slider and the app installs.
Related
I have looked through the Microsoft documentation but everything seems to want you to run everything with the development code. I used a bitbar tutorial to help start my C# xamarinui test framework. I have the emulators working I just want the apk and ios apps to install as the first test. I know how to drag and drop and put the app on the phone manually. I am looking for a way to get the app to install and launch through test code or by some operation. I do not have access to the source.
Only for the Android case, google for the apk, usually they are available on sites like apk pure etc. If the apk has executables for x86 inside you could install in on android simulator using just drag and drop.
For iOS this seems not possible as the installer has to be signed with appropriate profiles that only app developer has in his possession.
I'm building a Xamarin app, and, so far, I've been able to build without issue on the iPhone Simulator, but I haven't been able to get the app to launch successfully on a physical iPhone device. In the past (about a month ago), the app was working fine on the same device. Here's some background on the specifics:
I develop my Xamarin code on my Windows machine, which is linked a remote Mac (hosted by MacStadium, a third-party hosting service).
My test phone is an iPhone 5c running iOS 10.3.3
To deploy to my iPhone, I build my app in Release mode in Visual Studio, upload the code to a third-party app installation service, Installr, which hosts the IPA file and assists with the installation of my app on the physical device. I've never had an issue with Installr and have no reason to believe that this is the source of my problem.
Since the last time the app worked on the physical device, I updated Visual Studio to version 16.3.2 and updated Xamarin. Here's the Xamarin Specs:
Generally, what happens, is that I download and install my app on the iPhone without any issue. However, when I click on the app, the splash screen loads for about 5 seconds, a white screen briefly appears as follow, then the app crashes.
I've seen several related articles on StackOverflow and other sources on the internet, but none of the proposed solutions see to work for me. For example, I've tried adding [assembly: XamlCompilation(XamlCompilationOptions.Compile)]
to App.xaml.cs with no luck.
I've also played around with changing the CSProj file settings to compile for various combinations of ARM64 and ARMv7. Changing this didn't help either. I've tried changing the linker behavior to "Don't Link" from "Link Framework SDKs Only", and I get an error message stating that the native code is too large for 32-bit architectures. I would compile for only 64-architectures to get around this error, but I believe that the iPhone 5c uses a 32-bit architecture.
Here's what my iOS Project's CSProj file looks like currently. I've tried checking just about all of those checkboxes with no luck:
I'm stumped as to what this could be. Any suggestions would be greatly appreciated. To further complicate things, I haven't been able to get a good log file from the iPhone. Since the Mac is remotely hosted, I can't plug my phone into XCode to pull the logs that way. Does anyone have a reliable solution to get log files another way?
It looks like upgrading solved the problem. Visual Studio was updated to Visual Studio to 16.3.5 from 16.3.2. XCode on my Mac was updated to Version 11.1. After these updates, Visual Studio performed an update while connecting to the Mac remotely.
Good morning,
I Need some help to solve an issue that I found on my android application.
I have created an android application that has device administrator permission using a PC A
now I have moved to a different PC, B and when I open the same project on my visual studio and generate the apk from the new PC, if I try to reinstall it by opening the apk on the android device where there is already install the application it fails.(application not installed)
If I open the same project on my old pc, I can generate the apk and reinstall on it (application installed).
I have checked and all option on android are the same.same sdk version same min sdk etc.
Do you know if the are some "key" to copy from my old pc?
the only solution that I have is format the android device and reinstall the application because when the android application is device administrator I can't uninstall it.
thanks and regards,
andrea
So I was playing with Xamarin for 2 weeks. I was able to build and run the project on my Android device.
Today I tried the release mode and built an APK and signed it. Everything was fine until that. After I built and installed the APK to my Android device, deployment started to fail. It builds successfully but it can't deploy it on my Android device. It's worth noting that I chose the debug mode.
The funny thing is, it deploys to a virtual device but not to my physical device. I tried cleaning and rebuilding the project and it did not fix the problem.
Uninstall any previously deployed .apk from your phone , that could potentially be signed with a different keystore and then try to build again
I've been having this problem for a few days, and can't find any solution.
I made my app with Xamarin Studio. I am trying to upload an update for my it to iTunes Connect through Xcode. But when trying to validate the app I get the following error: "This bundle is invalid. New apps and app updates submitted to the App Store must be built with public." Dissecting this error it makes it sound like it thinks I'm using a beta SDK, which I'm not (full system specs below). Even weirder is that if I go through Xamarin Studio's Archive validation it tells me everything is fine. But when I go through Application Loader it tells me the following:
"ERROR ITMS-9000: This bundle is invalid. New apps and app updates submitted to the App Store must be built with public (GM) versions of Xcode 5.1.1 or higher and iOS 7 SDK. Do not submit apps built with beta software." Obviously this is the same error as before, just a little more detailed. But the system specs it outlines, are exactly the same as I am using.
Hopefully someone out there can lend me a hand! :D
System Specs:
Mac OSX 10.9.3
Xcode 5.1.1 (Downloaded from the Mac App Store)
iOS 7 SDK, building for iOS 7.1
Xamarin Studio 5.0
Application Loader 2.9.1
Thanks in advance!
Open your project in Xamarin Studio, then double click on Info.plist. Click on Use Asset Catalogs for both sections: Universal Icons & Universal Launch Images. It should create two new folders:
Resources/Images.xassets/AppIcons.appiconset
Resources/Images.xassets/LanuchImage.lanuchimage
Go to AppIcons.appiconset folder and make sure that you have the following file names:
AppIcon57x57.png
AppIcon57x57#2x.png
AppIcon72x72#2x~.png
AppIcon72x72~ipad.png
Rename your icons if you don't have them and double click on Content.json to assign them.