I just installed Visual Studio 2015 Update 3 and included Visual c++ cross-platform for Android. The installation was successful. After installation I created a new project Native-Activity Application (Android).
Upon building the project to execute it in an emulator, I encountered the following:
Error MSB3073 The command ""C:\Program Files (x86)\Microsoft Visual Studio 14.0\Apps\apache-ant-1.9.3\bin\ant.bat" debug -Dout.final.file="C:\Users\Admin\Documents\Projects\Exp\Android3\Android3\Android3.Packaging\ARM\Debug\Android3.apk"" exited with code 1. Android3.Packaging C:\Program Files (x86)\MSBuild\Microsoft\MDD\Android\V140\Android.Common.targets 378
Why am I getting the error? Am I missing something?
I had gotten a very similar error when I created a new Native Android Application using Visual Studio 2015. It turned out in my case that there were additional errors in the output tab saying that it could not find android-19. So what I did was used visual studio 2015 "Tools->Android->Android SDK Manager" to install Android 4.42 (API 19) and I was able to build my solution.
Related
I'm facing this issue while installing android studio components.
Android v3.5.2
windows 10
enter image description here
I faced this error while installing android studio. The below steps fixed my issue.
Go to https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads & Install Microsoft Visual C++ Redistributable for Visual Studio 2015, 2017 and 2019. and then continue the Android studio installation.
Choose the appropriate installation file for your OS.
x86: vc_redist.x86.exe
x64: vc_redist.x64.exe
This could be because of some missing c++ dependency libraries. Please try installing the vc++ 2015 -2019 runtime from the below link and try again:
https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads
I am doing a fresh installation of Commercial Qt on a new MacOS Sierra machine. I am trying to build a sample Qt app for android & iOS. I am able to build my QtApp for iOS without any trouble.
But on android I get the following error:
Buildfile: build.xml does not exist!
Build failed
Building the android package failed!
-- For more information, run this command with --verbose.
19:47:50: The process "/Users/MyComputer/Qt/5.7/android_armv7/bin/androiddeployqt" exited with code 14.
Error while building/deploying project t1 (kit: Android for armeabi-v7a (GCC 4.9, Qt 5.7.1))
When executing step "Build Android APK"
I have downloaded latest ndk r14b from here.
I have installed latest sdk that comes with Android Studio these days from here. And updated android sdkmanager to installed all platforms ranging from android-19 to android-25.
I have installed latest JDK 8 as well. I tested the android setup by building & running an android app from Android Studio which worked flawlessly.
Qt worked with Android pretty nicely. What has changed ? Should I do some tweaks because of some structural changes in Android ?
Copying PathToAndroidStudio/templates into PathToAndroidSDK/templates or PathToAndroidSDK/tools/templates as suggested here & here doesn't seem to be enough.
What more should I do apart from copying the templates folder as suggested in some other answers ?
You are trying to use Ant build system. Change it to using Gradle-based one or take a look here: The ant/ folder is suddenly missing from Android SDK. Did Google remove it?
I'm using Xamarin in with Visual Studio 2015, Windows 10 64 bit. When building the project it shows the below warning:
C:\Program Files (x86)\MSBuild\Xamarin\Android\Xamarin.Android.Common.Debugging.targets(283,2): warning : Error: no package specified
It doesn't stop me from building and deploying but I'm not fond of errors anyway.
How to deal with such an error?
I have an Ionic app that I can debug in Visual Studio 2015 using Ripple. I now want to debug in a tablet that has Android 4.2.2 installed.
So I downloaded the jsHybugger app as described on MSDN (except I didn't purchase a license, so skipped step 5 - "Place the jshybugger_license.xml file in the root of your project").
Now I hit a problem when I select "Device" as the debug target. I get this error:
MSBUILD : cordova-build error BLD10205: Please install Android target ""
So I opened Android SDK manager and installed everything under the 4.2.2 target. I then got a new error:
Unable to start program 'C:\Program Files\Eclipse\adt-bundle-windows-x86_64-20140702\sdk\platform-tools\adb.exe'
I don't use Eclipse, and there is another copy of adb.exe in C:\Program Files (x86)\Android\android-sdk\platform-tools, so I uninstalled Eclipse and ran a repair on the Visual Studio 2015 installation.
I then got (the command being ....cordova\build.bat):
Command failed with exit code 2
I went to Tools-> Options-> Tools For Apache Cordova -> Cordova Tools -> Clear cache, and this caused a fresh install of the Cordova tools. However I still get the "Command failed with exit code 2" error.
How do I fix this mess?
I had the same issue a while ago, and by following the steps in this post solved it for me.
Ensure that you have Android version 19 installed. I was targeting Jelly Bean, and I still got this error...
i want to use Apache Cordova in visual studio 2013.
I followed the instructions on installing Apache tools manually from this
When i create new project with Template apache cordova app get this error:
1-Android package
I installed latest the Android SDK with the following package:
2-WebSocket4Net
I Downloaded WebSocket4Net(0.9).Binaries.zip from CodePlex
and installed visual studio in drive D :
D:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\CommonExtensions\Microsoft\WebClient\Diagnostics\ToolWindows
then copied WebSocket4Net.dll to ToolWindows folder
Seems you alreay have the required component installed.
It might be a false alarm by the visual studio dependency checker. Actually, I have some warnings as well, but everything works well. If you did not encounter any problem during building app, feel free to ignore the warning. WebSocket4Net is only required for win7 and if ripple works well, leave it there.
P.S. don't upgrade Android 24.3.2 for now, because there is a known issue that will cause build fail when trying deploy on Android device and android emulator.