I have just updated Visual Studio 2017 and create one new project. It build successfully but giving deployment error. Application doesn't deploy on my Samsung J7 device. Before the update, it was working fine.
How to resolve this?
there are four solutions:
-read this post
-This bug is in last version Visual Studio 15.6. If you use this version make downgrade to 15.5.
How delete current version
Download older version - select your version on this page.
-Or wait for the next update
-or disable the signing of the apk in the properties of your project.
Edit your csproj and set :
<AndroidKeyStore>false</AndroidKeyStore>
But in this case you will not be able to publish your package in Google Play.
download the used SDK. Update your visual Studio(if u r not using the latest one). Check Paths. Restart Visual Studio after that. it will run
About 15.6.1, I suggest you uninstall all of your Android SDK, and reinstall, it works for me!
Also you can refer to this.
Related
I am trying to explore Xamarin, trying to create simple CURD project.
I was able to make some progress by watching youtube video's, but I am not sure what went wrong all of the sudden I am getting blank screen in my emulator when I am trying to deploy the project.
Firstly it showed me error stating
'the targetFrameWorkVersion is greater than my project version. You
need to increase the version for the project'.
I tried it, I increased my project version. This issue got resolved but gave birth new error.
Secondly
'To deploy this application, your deployment target should be running
Windows Universal Runtime version 10.0.16299.0 or higher. You
currently are running version 10.0.14393.2007. Please update your OS,
or change your deployment target to a device with the appropriate
version.'
I looked up for newer version of OS, but it seems my OS is already up to date.
I really appreciate if anyone help me out with tips or clue.
Environment is as follows
Visual Studio: 2017
Operating System: Windows 10
I am attaching ScreenShot of error
:
Try this
Set your android project as StartUp project
In your VS menu go to Build ->Configuration Manager
Uncheck the UWP project from both Build and Deploy, i hope your issue will be sorted.
first
its not your SDK, this is cause by old nugets in your project.
update all your nugets. at least xamarin.forms.dll
second
update your windows OS to latest. then
install appropriate microsft windows mobile sdk version. the link should appear when you right click your project and select install missing features
https://learn.microsoft.com/en-us/windows/uwp/updates-and-versions/choose-a-uwp-version
Ok, here is the thing:
I am using Xamarin.Form to build an app that targets both iOS and Android. I am using Xamarin Studio for Mac
I create the app and the solution creates App, App.Droid, App.iOS project.
In every project there is an indication that show some packages need to be updated.
I run the Droid project in a Samsung S5 API 21, without doing the update, and the app is installed in the device.
I do the update of the packages, to update Xamarin.Form in 20.0.+ version base on the feedback of this question: https://forums.xamarin.com/discussion/57283/unable-to-find-a-version-of-xf-compatible-with so I just update the Xamarin.Form package.
I run again in a Samsung S5 21 but there are some errors : /Users/crs/Projects/time.al/Droid: Error XA5209: Unzipping failed. Please download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip and extract it to the /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content directory. (XA5209) (time.al.Droid)
What can I do, because I need to update the Xamarin.Forms to the latest version, but I am stuck with this for a long time.
You should:
1-Download https://dl-ssl.google.com/android/repository/android_m2repository_r22.zip
2-Go to: /Users/crs/.local/share/Xamarin/Android.Support.v4/23.0.1.3/content
3-Copy the repository downloaded here and unzipped
This worked for me
You should:
Download https://dlssl.google.com/android/repository/android_m2repository_r22.zip
Then go [username]\AppData(hidder folder)\Local\Xamarin\zip
and delete any zip file from there. then rebuild you project and goto step 2 location you should found there something like 96659D653BDE??????????.zip file which visual studio try to download stop build and copy step 1. downloaded file in step 2 location and rename that file with this 96659D653BDE?????????? and remove 96659D653BDE??????????.zip file which is uncompleted.
Then go to visual studio and rebuild your project wait and Viola you got rebuild success. Good Luck
Just remove the corrupted file (android_m2repository_r22.zip) and try again. This happend me like two times by the bad internet connection.
I have just installed the Xamarin tools, installation went without any errors.
I have launched VS 2013 Update 4 Pro and created Blank App ( Native Shared ).
I did not modify code or project structure, just tried to run.
So i have changed the Startup Project to Adnroid project:
Then i have rebuilt the entire solution.
The console prompted Rebuild succeeded.
I have noticed that debugging button has a very long path, which is strange:
If i click on any option it opens the AVD Manager, but doesn't change the Start, to selected device.
So i have tried launching the Emulator from AVD manager and it works.
But when i click start in VS it prompts me:
Where is the problem? How can a newly installed app not work?
You project is most likely targeting lower version of android API. Try changing the target android version.
A note here should be that within Visual Studio/Xamarin the settings regarding supported version are within the solution settings of that project.
In this way you can change the version to support what you need, or if it is correct download a more current simulator.
This can be done with GenyMotion for instance or Xamarin Android Player.
This error message currently can be shown due to a large number of different issues.
Visit Build Failed. MonoDroid does not support running the previous version to learn about the different causes for this error message.
I updated Android Studio to 0.8.2 and at first I had Gradle problems and Rendering Problems.
My Rendering Problem was that I didn't select a render target. After fixing this problem I got another Rendering problem.
Rendering Problems File C:\Users\User\AppData\Local\Android\android-studio2\sdk\platforms\android-19\data\layoutlib.jar doesnt exist (Details).
I've searched so much on the internet and I even downloaded the layoutlib.jar file but it didn't solve my problem. I really need help because I wanna concentrate on my work.
THANK YOU IN ADVANCE
Had the same problem. What worked for me is deleting the SDK Platform for the specific API (19 in this case) using Android SDK manager. If you open SDK manager and expand the different Platforms packages like Android 5.0.1(API 21) and so on, you'll see the respective SDK Platform underneath. Select the one you're having trouble with and delete it. Then reinstall it.
Try to update SDK.
Tools -> Android -> SDK Manager, when the manager is opened packages which have updates will be checked, you just click "Install packages".
Delete all items in andoid 21 and install again. Your problem will be solved. Thanks..
Just uninstall and reinstall
specific android APK
with android here it android-19
Tools -> Android -> SDK Manager
1.uncheck the specific android APK android check box the apply (wait if need to unistall)
recheck the same specific android APK android apk and then click on Apply
I updated the Eclipse plugins (Help - Check for update). Since the restart after installation, the plugins aren't working any longer. They're still enlisted in "installation details", but there are no Android preferences, no Android menu entries, no editor ("Could not open the editor: No editor descriptor for id com.android.ide.eclipse.editors.manifest.ManifestEditor"), and so on. I tried to un- and reinstall the plugins with no success. I'm using Eclipse Helileo with Ubuntu. Any idea how I could get my Android IDE working again?
Did you also update the SDK tools? i.e clicking the little Android with the arrow icon and letting it check for updates then installing the updates.
the problem come from the compatibility of the plugin versions and the version of the jdk/sdk
if you have the last plugin , you must have the last version of jdk/sdk
try to download the last revision of sdk android , with the last jdk java
and lanch again the eclipse .
good luck my freind
I have had the same problem several times. Sadly, the only sure-fire solution I've found is to remove ~/.eclipse and reinstall the Android Eclipse plugin (http://developer.android.com/sdk/installing/installing-adt.html). There is talk that it's fixable just by modifying the bundles.info file (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=587657) but I never managed to get it working that way.