File called 'Flutter' already exists in this location - java

When i set the Flutter Sdk path i am facing Error Flutter SDK path not given (and one Pop up window open and showing message "File called 'Flutter' already exists in this location") on Android Studio using mac book pro can you handle this solution Thanks in Advance

The trick is not to click on Install Sdk while creating new flutter project but instead give path in the respective text box.
When you click on Install Sdk and take it to your flutter folder, android studio creates a new folder flutter inside your flutter folder and copies all the files.

The problem is probably the fact that you have a file somewhere called flutter. Note that when you download the Flutter SDK using Android Studio will download the SDK into a folder, not a file. For example I downloaded my Flutter SDK in my user folder:
$ ls /Users/gi097/flutter
AUTHORS README.md examples
CODE_OF_CONDUCT.md analysis_options.yaml flutter_console.bat
CONTRIBUTING.md bin packages
LICENSE dartdoc_options.yaml version
PATENTS dev
So, first of all make sure that the folder you choose does not contain a file called flutter before downloading the SDK.
If that does not work, you can also download the SDK manually like the following:
$ cd /Users/yourusername
$ git clone https://github.com/flutter/flutter
$ ./flutter/bin/flutter doctor
Now you can just set the /Users/yourusername/flutter as the SDK location when opening Android Studio or Visual Studio Code. You can also run direct commands with only Flutter itself e.g.:
$ ./flutter/bin/flutter run
It's also worth nothing to read the following manual: https://flutter.io/docs/get-started/install

When you set the Flutter Sdk path you are facing Error Flutter SDK path not given (and one Pop up window open and showing message "File called 'Flutter' already exists in this location") on Android Studio using mac book pro can you handle this solution
Please change your project name and it's working fine.

Just delete the file that has the same name on the location.
It worked for me.

Related

Can't install Dropbox plugin for Android Studio

I'm trying to add the latest (v5.1.1) Dropbox plugin to my Android Studio install (Bumblebee 2021.1.1) on Win10. I downloaded the .jar file from releases/v5.1.1 folder to an empty folder, then tried to install it using this method: from the Studio main menu I chose Plugins, selected the gear icon followed by Install Plugin From Disk, browsed to the .jar file location, selected it then pressed OK. I got an error message: "Fail to load plugin from file dropbox-sdk-java-5.1.1.jar". I tried installing the -5.1.1-javadoc.jar file using the same method, with the same result. I don't need the sources, I just want to use the SDK. Any ideas? TIA!
First, I think you meant "Android Studio" instead of "Visual Studio"?
If so, it sounds like you're attempting to install the Dropbox Java SDK as a plugin to Android Studio itself. The Dropbox Java SDK is not an Android Studio plugin though. It is a package for connecting to the Dropbox API from your Java app.
To install the Dropbox package in your app, you should use Maven or Gradle, as instructed here.
The Dropbox Java SDK also comes with an example Android app that uses the Dropbox package.
Thanks, Greg; your answer pointed me in the right direction. I had already added an 'implementation' directive to my Gradle file as per the directions on GitHub. However, I took the instruction to add the directive by editing my "project's build.gradle" too literally; I added it to the Project build.gradle file instead of adding it to the Module build.gradle. Problem solved!

Flutter The system cannot find the path specified

I am shifting from android studio to flutter. Yesterday, I tried to setup flutter in android studio. I downloaded the zip folder flutter_window_1.22.5-stable.zip file from doc which is 128 MB. Extracted the file in C:\src\flutter. Set up the path in environmental variable which is C:\src\flutter\bin and also set up git path in system variable. After this I downloaded plugins in android studio.
The problem is that
when I type git in CMD it works fine but when I type flutter doctor it shows
The system cannot find the path specified.
and in android studio I also gave the path which is C:\src\flutter but it shows error says the SDK installation in incomplete. I want to set up flutter in my windows 10.

Android Studio aapt.exe missing error message after importing cordova project

Error:Execution failed for task ':CordovaLib:processDebugResources'.
aapt is missing on 'C:\Users\rv498\AppData\Local\Android\Sdk\build-tools\25.0.2\aapt.exe'
Hello, I have done importing cordova project to Android Studio before with no problems. My android studio is the latest stable version because I reinstalled it today (3/17/17). Please help thanks.
BTW, the reason I started to import to Android Studio from Cordova is because I was starting get message about gradle wrapper missing from cordova CLI. I suspect this is SDK Manager issue and I went there but after few attempts, nothing really progressed.
-I had same issue so i opened C:\Users\Sheriff\AppData\Local\Android\sdk\build-tools\24.0.2
-i saw aapt2.exe then i changed it to aapt.exe
-Closed my project on the android studio then opened it back it was working perfectly.
Quick solution
check if aapt.exe is in fact missing C:\Users\rv498\AppData\Local\Android\Sdk\build-tools\25.0.2\
it's there? echeck perms, check %PATH%
it is not there? find where it is. Copy it to the location above
of check why it looks for it in that place. Is there's any config file that got the above path? If so, edit it.
aapt.exe file moved to the latest sdk build tools folder
I just found aapt.exe file in my latest Android-SDK folder (Android_SDK\build-tools\28.0.3)
You can check your latest sdk build-tools folder
or
You can search on total Android SDK folder by file name

Run "Android update project --path ." return invalided number of parameters

I am using Windows 7 and I am new to Android development. I had no problem build android app with Ecliose, but I felt it would be very nice if I can build the android application with command lines. So,I have done some Google, and I found that I can use Ant to build my android app, so I have installed Ant and Added Android to my path.
When I run "Android update project --path ." command, I have got the following message, I am not sure if it is an error message or not.
The message was "invalid number of parameters the system cannon find the path specified. Updated local.properties"
Please give me some ideas on this. Thank you.
Added Android to my path
Please make sure you have added the ...\sdk\tools to your path.Also you need to add the apache-ant\bin to your path.
So your environmental variables should look something like this
Variable Name PATH
Variable Values C:\Program Files (x86)\apache-ant-1.9.4\bin;C:\Users\HP\Eclipse Android Developer\adt-bundle-windows-x86_64-20131030\sdk\tools
Before updating a project also make sure that you have the latest version of Android SDK Build Tools.You can update your Android SDK Build Tools using the Android SDK manager.

Unity Android Build Error WIN32 Exception ZipAlign

Every time I try to build my game for android, I get this error:
Error building Player: Win32Exception:
ApplicationName='.../.../.../.../adt-bundle-mac-x86_64-20140624/sdk/tools/zipalign',
CommandLine='4"/.../.../.../.../Asteroid2(2)/Temp/StagingArea/Package.apk'".
CurrentDirectory='Temp/StagingArea'
Any ideas? I'm stumped. I've redownloaded the SDK and that didn't help.
Find your copy of the Android SDK in explorer
Go to build-tools and choose a version (e.g.build-tools\19.1.0)
Copy zipalign.exe
Come back out of build-tools
Go into tools
Paste zipalign.exe
You need to copy the zipalign tool from sdk/build-tools/android-{version}/ to sdk/tools/
In Unity go to Edit>Preferences>External Tools> in "Android SDK Location" select the folder of android-sdk (C:\Program Files (x86)\Android\android-sdk) in my case.
You need to copy zipalign as suggested at accepted answer; but if there are no zipalign file in related folder first you should go tools, run android and then install build-tools
To fix this error:
Go to C:\Program Files (x86)\Android\android-sdk\build-tools\20.0.0 (you may have different version)
Copy zipalign.exe to C:\Program Files (x86)\Android\android-sdk\tools\ (or in your Android SDK path)
Found here
I fixed this simply by updating "Tools->Android SDK Build-tools" in the Android SDK Manager to the latest version.

Categories