In Xamarin project I got deployment errors those are below
"InstallPackageAssemblies" -- FAILED.
"_Upload" in project "LiUpHandy.csproj" -- FAILED.
Done building project "LiUpHandy.csproj" -- FAILED.
Can anyone help me ?
Ultimately I found the solution to this problem
Follow these steps :
> Go to settings on your device
> Application Manager
> Find 'All' or 'Running' Tab's apps
> Find your own app's package name like com.packagename
> Uninstall that package name i.e. app
> Hit the Debug in your VS2015 to run Xamarin.Android App on your real device
Had same thing.
Try running vs as Admin.
I had some more issues after.
try new sdk, ndk, jdk.
The one from unreal engine nvidia pack worked for me. Make sure you change path in tools->options->Xamarin
Related
I am using cordova 6.5.0 and when I run "cordova build ios" the build failed with error "No profile for team **** matching ***** found"
but when I open the project in Xcode I am able to build and archive using the same provision profile
How do I solve this?
1) Do you have any Embedded Frameworks in your project?
Go to Build Phases > Under Embed Frameworks
Tick the checkbox for Code Sign On Copy
And try to build again
2) Try to double check your certificate and your provisioning profile if it is selected correctly
Hope it helps!
I'm getting this error when running a built project in Visual Studio 2017:
------ Deploy started: Project: myProj, Configuration: Debug Win32 ------
C:\...\myProj.vcxproj : error MSB4057: The target "Deploy" does not exist in the project.
Done building project "myProj.vcxproj" -- FAILED.
========== Deploy: 0 succeeded, 1 failed, 0 skipped ==========
I found something online saying uncheck Deploy from Build, Configuration Manager... but it is already unchecked.
If I try to run it again, it will load and run. But I'd like to be able to release code that works the first time. What else might I try? TIA.
Odds are you have a post build event in your project. When you first build it the post build event fires and attempts the deploy. The second time you go to build the project is already 'up to date' so it is not built and the post build event does not fire.
You can view your post build events by right clicking your project and choosing properties, expanding build events and then expanding post build.
You can also check if anything is defined under custom build steps.
Solved the problem by opening the .sln file of the problematic solution with a text editor. I've found there the following lines for different configurations:
{GUID}.Release|x86.Deploy.0 = Release|Win32
After deleting all these lines for different configurations, I didn't get the error anymore.
This worked for me :
GOTO "Project Property Page"
click "Project Dependencies"
Select your main project in "Project:"
Add the dependency on the project that gives you the deploy error.
Save ALL
Recompile
I chose Build -> Archive for publishing
and I am getting the following error
/Library/Frameworks/Mono.framework/External/xbuild/Xamarin/Android/Xamarin.Android.Common.targets(2,2):
Error: Could not load assembly ‘myapp, Version=0.0.0.0,
Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the
Mono for Android profile? (myapp.Droid)
It was working earlier but now not anymore
I had the exact same scenario, the project used to archive but doesn't any longer, same OS, debug is also perfectly fine.
I found that I only had armeabi-v7a ticked, after ticking x86 it seemed to work.
Step1:
Change Linker Mode
Step2:
Delete obj & bin files in all platforms
Step3:
Rebuild your solution in Debug mode.
Step4:
Now put release mode then try maybe it will work for you
You have to use the Release|AnyCPU when building the project instead of Release|ARM. That worked for me.
When I try to build the application I get an exception the following exception :
C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Failed to resolve assembly: 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
I tried cleaning the project and building it again, also updated the Xamarin.Forms packages but still with no luck.
A little overview on the stack trace :
2>C:\Program Files (x86)\MSBuild\Xamarin\iOS\Xamarin.iOS.Common.targets(681,3): error : Failed to resolve assembly: 'Java.Interop, Version=0.1.0.0, Culture=neutral, PublicKeyToken=84e04ff9cfb79065'
2> Tool /Library/Frameworks/Xamarin.iOS.framework/Versions/Current/bin/mtouch execution finished. (TaskId:153)
2> MTouch: 2016-07-05T14:27:15.8191415+05:30 - Finished (TaskId:153)
2> Output Item(s): _NativeLibrary= (TaskId:153)
2>Done executing task "MTouch" -- FAILED. (TaskId:153)
Has anyone received this error? I am running the latest Xamarin for Visual Studio.
As mentioned in the comments above by #SushiHangover Java.Interop.dll is from Xamarin.Android and I was getting an error in Xamarin.IOS.
I had a reference of Mono.Android in PCL which is always referenced in Xamarin.IOS so indirectly I was referencing dll of Xamarin.Android to Xamarin.IOS. Removing the reference from PCL solved my problem.
Step-by-step instructions on how to fish this one out, as it took me some time to find where the 'Android polluted' peace of code was.
Unload your Common code project
Open .csproj look for something like this
<ItemGroup>
<Reference Include="Mono.Android">
<HintPath>..\..\..\..\..\..\..\Program Files (x86)\Microsoft Visual Studio\2019\Professional\Common7\IDE\ReferenceAssemblies\Microsoft\Framework\MonoAndroid\v11.0\Mono.Android.dll</HintPath>
</Reference>
Delete this segment from csproj.
Load the project
Clean and rebuild the solution having iOS as startup Project, at this point, you will get a build error that will show which .cs file fails to build due to missing reference.
Go there and move the mechanism to an Android specific project.
As mentioned by #AkashAmin 'Mono.Android' referenced should not be there in PCL project.
But with this, also make sure that you have not added any 'Android' specific code in PCL project by adding 'using Android', if this was done then you need to remove this code by using 'Dependency Services', Click here
I had the same problem and when I removed the android.mono reference from pcl project it worked fine.
I think it happens because we are building project in ios and it doesn't have any android libraries
Platform specific code within the Shared Project will cause iOS compiler to attempt to use the platform specific assemblies when compiling.
In my case, I had a reference within my Shared Project's code, within the "using" statements, which was causing iOS to attempt to link to Android specific assemblies.
Removing the code from the Shared Project allowed for successful compiling of the project.
Just in case, I got this error from working with ReSharper on VS2013 (https://bugzilla.xamarin.com/show_bug.cgi?id=41627).
What I did was use the Workaround to explicitly add java.interop.dll assembly to my project. This problem doesn't affect Build so you can deploy first and VS will download java.interop to your app's obj\Debug\linksrc folder, which you can reference...
You need to check your PLC project on Android link. In PLC project ctrl+f and lets go find "Android" and delete it.
Have been following the instructions to migrate VS2013 proejct to VS2015 as outlined in the page:
http://mariusbancila.ro/blog/2015/07/31/migrating-a-cordova-project-from-visual-studio-2013-to-visual-studio-2015/
and
https://github.com/Microsoft/cordova-docs/blob/master/known-issues/known-issues-vs2015.md
Getting some build Errors:
Done executing task "MdaVsCli" -- FAILED. (TaskId:11)
1>Done building target "BuildMDA" in project "LabbookMobile.jsproj" -- FAILED.: (TargetId:11)
Full Output: http://pastebin.com/uh6eMQu1
Dose anyone anyone know how I can fix this?
Turned out I had some of the files in the wrong location in the newly created www directory. The xxxx.jsproj, taco.json and config.xml should be in the directory above the www folder.