Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why is xCode asking for Android Studio Gradle files?

I had to delete Android Studio off my MacBook Air to free up space for an xCode update. Now xCode is complaining its missing Android Studio files that have nothing to do with it but are somehow titled

xCode Error displayed

file:///Users/administrator/Documents/Retrographic/Sprocket/Android/Gradle%20Binaries/gradle-2.2.1/lib/plugins/xbean-reflect-3.4.jar: warning: Missing file: /Users/administrator/Documents/Retrographic/Sprocket/Android/Gradle Binaries/gradle-2.2.1/lib/plugins/xbean-reflect-3.4.jar is missing from working copy

What the heck is this and how do I fix it? I tried re-downloading the branch in SourceTree and pointing xCode at it but its still having the same problem. Do I need to just nuke and re-install xCode?

:(

like image 579
NukeouT Avatar asked Jan 23 '17 06:01

NukeouT


People also ask

Do I need Gradle for Android studio?

Android Studio comes with a working installation of Gradle, so you don't need to install Gradle separately in that case. In order to create a new build or add a Wrapper to an existing build, you will need to install Gradle according to these instructions.

Does Xcode use Gradle?

The Xcode Plugin generate files that are used by the Xcode IDE to open Gradle projects into Xcode ( File - Open… ​ ). The generated Xcode project delegates build actions to Gradle.

What is Android Gradle file?

gradle files are the main script files for automating the tasks in an android project and are used by Gradle for generating the APK from the source files.

Is Gradle necessary?

Gradle comes to your rescue whenever you wish to build an Android Project. It makes sure that you can generate an apk from . java and . xml files in the most efficient way possible.


2 Answers

This seems very unusual...

My best guess would be to go through your various build settings in your project targets and ensure that this file isn't listed under anything for linking, building, etc.

If it is, delete it, provided you don't need it for your XCode project.

like image 101
DCIndieDev Avatar answered Sep 21 '22 16:09

DCIndieDev


This error occurs as that file was under your version control system such as git and now it is removed. xcode checks the status of git and complains if a file was removed. You can go to your version control system and commit this change so that xcode doesn't complain. If you are using git, you can do the following:

  • git status --> This should tell the file was removed
  • git commit ...
like image 23
manishg Avatar answered Sep 17 '22 16:09

manishg