I re-installed google_play_services successfully and I have google_play_services-lib in my workspace. When I try to import it as a project in eclipse I use File-> Import->Existing Projects into Workspece -> Next -> Select root directory and then I find and select google_play_services-lib but finally it says "no project found to import". Why is that? How can I import this lib into eclipse?
I forgot to mention that I followed the steps at http://developer.android.com/google/play-services/setup.html
If I understand correctly then the reason you cannot import it is because you have already imported it. If the Google Play Services code is outside Eclipse and you have updated those directories then the job is done !
However if you copied the code into the Eclipse workspace then the easiest approach may be to delete the GPGS lib from Eclipse and then import again.
Had the same Problem. What I did:
File -> Import -> Android -> Existing Android Code Into Workspace
That worked for me.
Related
I created a test project and added the following module as reference https://github.com/cwi-swat/rascal-OFG. But when I tried to check it using the terminal. I'm getting the following error.
|prompt:///|(0,32,<1,0>,<1,32>): Could not import module lang::ofg::ast::Java2OFG: can not find in search path
Advice: |http://tutor.rascal-mpl.org/Errors/Static/ModuleImport/ModuleImport.html|
Thanks in advance!
watch out for which project the terminal is active. If you:
first select the project your code is in, in the navigator by clicking on the project name
then start a Rascal console repl
you will see in the top of the console view the name of your project
this means the search path for the repl is set to the project and the interpret can find the files.
With my last restart of my mac I had a problem with IntelliJ IDEA project : the .iml file was deleted and I have
Error loading project: cannot load module cars-service Details ....
in the console.
Besides that, the structure view of the project has disapeared.
Here is a screenshot:
Finally, I imported my project via import project so the iml file was recreated.
Closing intelliJ. Deleting the .idea folder and re-opening intellij worked for me.
This happened to me this morning*, and fortunately there's a fairly straightforward solution.
Press Ctrl+Alt+Shift+S (or go to File > Project Structure...) and click Modules on the left of the window.
Click the green + above the list of modules then New Module. Select the type of module (Java, Android, Flash, what have you) and click Next.
Enter the details of the lost module. Click the browse button to the right of Content Root and navigate to the directory that contains your lost module. The module name will be populated with the directory name by default, but you can rename it without issue.
(*I... got a bit gung-ho with the old git clean -fd. I don't recommend it.)
The error has nothing to do with gems. Please try deleting the .idea directory and using "Open Directory" on the same directory again to recreate it.-- Dmitry Jemerov
↑an answer on intellij-support.jetbrains.com
This helped me. I just closed Pycharm, then delete .idea directory , then I open Pycharm again, and the error disappeared.
Please try File -> Invalidate Caches / Restart ...
Had a similar issue with PHPStorm (which is also idea based), caused by a renaming of my project. Solution was simple: I just needed to remove the corresponding line for the module declaration in file <project-directory>/.idea/modules.xml. Re-opening the project was not needed as it seemed to me, but I did it anyway.
Have had this issue with PHPStorm 2017.1.3.
IML file is necessary to load the project.
Locate the folder the .iml file used to be in > right click > Local history > show history.From there you should be able to restore that iml file
you can fix it by select your pom file. right click and then reimport
I'm using Android Studio on OS X, and want to import intellij-java-google-style.xml for my code format.
But I can't find import at Preferences -> Project Settings -> Code Style -> Manage only Save as, Delete, Copy to project, and Close there.
Copy intellij-java-google-style.xml into the directory $HOME/Library/Preferences/IdeaIC14/codestyles/.
In the latest Android Studio (as of this edit, 4.1.1) you can go to Preferences -> Editor -> Code Style -> Scheme -> Settings Icon (Gear) -> Import Scheme... and import the xml there.
I am using Android Studio 1.2 on Ubuntu 12.04 and in my case I have an .AndroidStudio1.2 folder in my home directory. In this folder there is a config folder. What I did was the following:
I created a new folder called codestyles in the config folder.
copied my style xml (in my case named AndroidStyle.xml) into the codestyles folder (.AndroidStudio1.2/config/codestyles/AndroidStyle.xml)
Went into File>Settings>Editor>Code Style
Chose the AndroidStyle among the listed Schemas.
NOTE: Android Studio does not give you an option to import the xml file. And before you add the file to the codestyles folder there is NO indication that you can change the Schema to your own in any way. But after you have added the file the added schema will be shown among the other schemas.
NOTE 2: In other Operating systems this folder is located elsewhere. For more info on configuration folders see here: http://tools.android.com/tech-docs/configuration
If you are on Android Studio Preview you will need to copy your style xml file to:
~/Library/Preferences/AndroidStudioPreviewX.X/codestyles
where X.X is your Preview version ie. 1.4
Also, for those who use Android Studio on windows. Copy your xml file to $USER_SPACE$\.AndroidStudio1.X\config\codeStyles. If you don't have the codeStyles folder, just create one. And then you will see it in Settings->Editor->Code Style->Scheme.
Here are steps I used to import my coding style for a project.
Place codingStyle.xml to .idea folder under your project.
In Android Studio select Project for coding style scheme, click OK.
Place original codingStyle.xml to .idea folder again (Android Studio most likely had overwritten with default settings your codingStyle.xml when you click OK on step 2)
Restart Android Sturdio.
I have set maven home directory , User setting file and local repo in Idea.
Then I import a maven project ,it starts to scan mavne projects, looking for available profiles. and I can see the Progress bar. but it takes a long time and back to the first step again.
Is my setting wrong ? how to import a maven project into IDEA? thanks a lot !
I had the same Problem. The solution was to edit the /etc/hosts file and add at the first line:
127.0.0.1 localhost localhost
See also:
Unable to import Maven project into IntelliJ IDEA
i opened a flash pro project in flashbuilder 4.5 but it puts a question mark next to my import statements for example:
import flash.display.;
I have tried rebuilding the project in a new folder. I have the latest SDK. why would Flashbuilder have a problem finding flash.display.; or import flash.events.*; very irritating is there a way to fix this or should i just continue to use textmate to code as3?
I'm having this issue myself from time to time, even in current Flash Builder 4.5 (never figured out how to replicate it though).
To solve it do this:
Right click on your project in Project Explorer tab of Flash Builder > Properties
Once there select ActioScript Build Path > Library path > Add SWC folder
Select this directory C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP9
(optionaly) If you wish to target FP10, add this dir instead C:\Program Files\Adobe\Adobe Flash CS5.5\Common\Configuration\ActionScript 3.0\FP10
Try this:
import flash.display.*;
You were missing the .*
This is what I found:
When I create a new Flash Professional project from FlashBuilder 4.5, the Flash IDE opens and my flash.display.Sprite import looks like it's broken.
If I close the Flash IDE, FlashBuilder opens it right back up again, and my imports look fine after that.
YMMV