Invalid command line files - visual-studio-2010

All the solutions posted here on stack overflow dont seem to suit my situation. I am using visual studio. How do I fix this error while not ruining the setup for monotouch? Monotouch docs say explicity that I should not at all start the image but monodroid will do it.
I am using mono for the android with visual studio. and soon will be using monotouch for IPhone

When you get the Invalid command-line option: Files, you should do the following (just fixed it on my machine):
Uninstall the Android SDK (if you have downloaded images, make a backup copy of the installation folder first)
Install the Android SDK again, but make sure you install it to a path that does not contain spaces. C:\Android will work fine.
After installation has finished, copy the backup copy over the newly installed version. Then you will keep your downloaded system images.
This apparently occurs because the Android SDK has a bug in the latest version when it comes to folders with spaces in them. Weird.

Related

FVM (Flutter Version Manager) is not using the version specified, neither can download the version needed in Windows

Please check the image, I am in my root Flutter project folder, and I am trying to change my Flutter version using FVM, because I need to use the earlier version; 3.3.8
When I run fvm list, it shows me that I have stable 3.3.10, and 3.3.8, however the stupid "fvm use is not running, I have no idea why. I am the only user, and I activated all the administrator privilages and turned the developer mode on. There should not be an issue with that. In addition, I can use any version inside my android studio by changing it manually from the settings, and manually downloading the version I need. However, when I want to use the terminal inside android studio, it is still telling me that I am using the newest version of flutter, I am assuming the global version I installed. Please help me use the desired version inside the terminal in android studio, the output is the same as in the picture I provided.
At this point I am thinking of deleting this windows all together and switching to linux.
I have tried whatever I could find online, nothing is working. I am able to use any version manually from settings in android studio, but the problem is in the terminal inside the studio.
So I solved it by manually going to my root flutter installed folder and changing my flutter version using the terminal (Not the FVM version). Then used only flutter-given commands instead of FVM; I know it is not the best solution, but it works.

Android SDK location in OSX - Has it been actually installed by Unity Hub?

We are using Unity 2018.3.8f1.
We have added Android Build Support from Unity Hub - Add Component:
But if we go to Unity Preferences - External Tools, the Android SDK location is empty:
I have not been able to find the location of the Android SDK folder anywhere. I'm wondering if the component installed by Unity Hub is something different to Android SDK. Maybe it must be installed separately from: https://developer.android.com/studio?pkg=tools#downloads?
UPDATE
So far I have installed "Command line tools only" from the previous link. Then, I have installed OpenSDK (Vistual Studio did it for me: it asked me to update and install it as one of the things to update).
But when I opened tools/bin/sdkmanager, it said "Java is not installed". So I also installed Oracle Java SDK. Unfortunately tools/bin/sdkmanager returned errors after it. I applied a few workarounds I found by googling the errors. Still not luck.
So I have moved to the easy way: installing the full version of Android Studio. If we choose custom, we'll see that Android SDK Platform is going to be installed:
So it is working, but I still have not idea of how many things I have duplicated on my system wasting space. I have:
The Android component installed from Unity Hub
Android Studio installed, which comes with the emulator and the IDE (I don't need them)
OpenSDK (installed by Visual Studio)
An embedded version of Java in Unity
Oracle Java
Are they all actually needed? I don't think so!
It seems the only thing you are wondering is if the component installed by Unity hub is something different to Android SDK... the short answer is yes. You have to download it on the Android Developer SDK website you linked in the question. You only need the SDK under "Command line tools only" at the bottom of the page. If you do this you also need to download the jdk separatly here.

Appcelerator | 'Android Distribution' Android SDK version 4.1.2 not found

I have pulled an Appcelerator project from our developer group and unable to publish or run the project on a local Android device.
When trying to publish the below error screen immediately pops up.
Android SDK version 4.1.2 not found.
I have checked both in the Appcelerator platform settings and Android Studio config and have the SDK installed.The install SDK screen in Appcelerator Tried uninstalling/reinstalling Appcli and the SDK to no avail.
After a few days of searching all the appecelerator files in my project. I finally found the fix for my problem (for anyone googling this).
There's a hidden file in the root of the Appcli project called .settings
Inside of settings there's a package called com.appcelerator.titanium.android.core.prefs
There is an android/sdk_version=4.1.2 that was causing all my issues. Hope that helps someone.
Most likely, your issue seems to be with unsupported Android SDK version as per Ti SDK you are using.
So before doing anything, try to grab what this page says to know all about software compatibilities: Titanium Comptability Matrix
It says that minimum Android version as of latest Ti SDK 6.x.x is API 16.
Now, follow these steps carefully to get a fresh start on your system.
First of all, download Android latest SDK from here: Android SDK
Unzip it & put it in at some simple path like in /Users/username/android-sdk
Download Appcelerator Studio (AS) & install it. It will download all pre-requisites like Java, Python
Open Appcelerator Studio & go to Preferences->Studio->Platforms->Android. Select the path of android sdk you unzipped in step 2.
After all these steps, you can open Android SDK Manager (see screenshot where it is) & install necessary SDK, Tools, etc.
Note: I do not suggest to download SDKs via AS as I have faced path issues in beginning.
Even if these steps do not help you, then provide us the log output after running this command on terminal: appc info
If terminal says this command is not found, then you need to go through the AS installation properly.
I had the same issue. Simply deleting all " Android Play Store Distribution" configurations solved my problem.

Xamarin version of Android SDK packages are not found (both Xamarin.Android and Xamarin.Forms)

After an upgrade of Xamarin.Android solution I've encountered the following error:
Please install package: 'Xamarin.Android.Support.v7.AppCompat' available in SDK installer. Java library file C:\Users\YOURUSERNAME\AppData\Local\Xamarin\Xamarin.Android.Support.v7.AppCompat\24.2.1.0\content\classes.jar doesn't exist.
There are number of other android support packages mentioned too. I can reproduce exactly the same situation with Xamarin.Forms.
I've checked the paths mentioned, but i can see the correct .jar in there. Forcing a reinstall of the NuGet package does not fix the problem.
The problem is caused by broken downloaded archives or broken extracted archives content. The solution is:
Ensure you have the latest version of the packages via Android SDK
Manager (e.g. Extras -> Android Support Library)
Delete the content of
C:\Users\YOURUSERNAME\AppData\Local\Xamarin\zips
Delete the content of the corresponding to the error message
C:\Users\YOURUSERNAME\AppData\Local\Xamarin\Xamarin.Android.PACKAGE_NAME
folders
Rebuild the solution from Visual Studio
NOTE: Do not interrupt rebuild process. It takes some time to download the archives. They are relatively big.

PhoneGap for Windows Phone doesn't work

I tried to start programming a Windows Phone 7 app with PhoneGap but after copying 'PhoneGapStarter.zip' to the folder described in http://phonegap.com/start#wp and clicking 'PhoneGapStarter" while trying to create a new project in Visual Studio 2010 Express for Windows Phone, instead of creating the project the following error is displayed:
C:\Users\ ...\AppData\Local\Temp\gttg1doh.nd4\Temp\PhoneGapStarter4.csproj(117,3): The imported project "C:\Program Files (x86)\MSBuiId\Microsoft\Silverlight for Phone\v4.0\Microsoft.Siverlight.WindowsPhone71.Overrides.targets" was not found. Confirm that the path in the <Import> declaration is correct and that the file exists on disk.
I checked this file and I saw that the file 'Microsoft.Siverlight.WindowsPhone.Overrides.targets' (without '71') does exist, but the requested one with '71' doesn't.
Does anyone have an idea what I could do to make PhoneGap work?
Thanks in advance
I just checked my own installation but found the mentioned file. My guess would be that you either have not the latest Windows Phone SDK 7.1 (for "Mango"), which is essential for PhoneGap because the previous version doesn't support HTML5 - or your SDK installation is corrupt. Try re-downloading the latest tools, uninstall your current installation and re-install them. That should solve your problem.
Yes , you need the Windows Phone Mango SDK along with PhoneGap templates to get it to work .
You can find some articles on how to use PhoneGap in Windows Phone from the below link
http://windowsphonerocks.com/category/developerarticles/phonegap/
Yap uninstalling and reinstalling the 7.1 update solves this issue; also dont forget to install the January patch too
www.microsoft.com/download/en/details.aspx?id=23854

Resources