I have a couple of non-android projects, one android library project and one android app project that depends on all other projects. Consequently, in the android app project I have a virtual MyLibrary_src source folder.
For some reason, when I'm doing refactoring in the library project, Eclipse partially executes it, but then fails with generic undo/abort dialog. I've found out that when I close the app project, refactorings complete without any problem. I suspect that the virtual source folder may be to blame, but I'm not sure.
Does anybody know how can I fix this problem?
With ADT v14 the problem fixed itself.
Related
I have an android project consisting of multiple subprojects and one of those subprojects is network, the problem is debugging breakpoints doesn't work in the network library project and also Android.Util.Log doesn't work too, so i don't have any way to debug the project right now and that's really makes things tough while fixing some issues or adding new functionality in the project. On a breakpoint it says
no executable code at line 42
also when i load the project (the one containing all the other projects in android studio) it says can't load 3 modules fine, but they work when i run them.
Just wanted to know if anyone else is facing the problem and what could be the solution.
I have tried putting the .iml files in .idea/modules/network and it helps me get rid of the error of can't load modules. I've tried cleaning the project already and rebuilding it. Restarting android studio, upgrading android studio I am on the latest version of android studio now.
When i open the project in intellij idea ultimate it gives me message that unsupported projects, can't have java projects with gradle projects in android. But the projects i have are Andriod library projects with their own build.gradle files.
It sounds to me like what's happening is your application is being built with older compiled versions of the libraries. How are they included in the project, gradle dependencies?
To get logging in you would need to open the modules add the logging and re-build them.
Copying around .iml is not a good idea in general. The correct process is to do an import in Android Studio. Here is a pretty good tutorial http://www.truiton.com/2015/02/android-studio-add-library-project/
The last step about adding it to your gradle file to compile is important that is was will allow it to pick up changes, like adding logging.
I've downloaded the Android SDK. I am trying to build the appcompat project. I've read that project is located here:
C:\Android\sdk\extras\android\support\v7\appcompat
I have imported the project into my workspace. It doesn't build.
I could go into great detail about which SDKs I have installed on my machine, etc. I could say that the values-v11, values-v14, and values-v21 folders all have errors, even though I have downloaded all three of these SDKs. But I am pretty sure if I import a project from the Android SDK website from the Android developer website, and I try to build that project, it should just work. I've followed the instructions here:
https://developer.android.com/tools/support-library/setup.html#libs-with-res
...and still not working.
So, why does this not work? I don't even care how to get it to work, I want to know why this does not work and why would I have to do any extra work or research to get it to build? Is this a problem with Eclipse? Should I be giving up on Eclipse and moving to Android Studio? This appears to be an incredibly simple thing to do and yet it does not work anymore.
So I've been trying to install libgdx for a few days with Eclipse and it kept telling me various things (Android ADT, Java JDK, etc.) needed to be updated, so I did that, but I kept getting the same error.
Then I decided to download an older version (0.9.8) and I used the gdx-setup-ui.jar to set up my projects. But upon opening them in the Eclipse/ADT bundle, the Android and HTML projects had errors in them involving the import statements, which I tried to solve to no avail.
This is the tutorial I've mainly tried to follow.
Does anybody have a solution for me to get it to work? I'm most familiar with Eclipse, having worked with it for Android for a while now, so I'd prefer not to switch IDEs.
Thanks in Advance
Use ADT (Android Developer Tools) instead of Eclipse. (Is the same thing anyways)
http://developer.android.com/tools/index.html
If you got errors after importing your projects on android, right click on the android project, and at android, check the version that is there.
For HTML you need to install the GWT plugin.
Recently libGDX has moved to Gradle, so you might want to look over that
https://github.com/libgdx/libgdx/wiki/Project-Setup-Gradle
Just a quick question I did not find a good answer on. We are currently working on an APP created with Eclipse ADT Bundle. I recently started exploring Android Studio, and like it. Is it possible to still collaborate with my mates using Eclipse with a shared GitHub repo?
I noticed Android Studio converts the project to its own file structure, so I guess this does not go well with Eclipse, and the repo.
Is there any solutions for this? So I can keep developing in Android Studio, push to GitHub, while the rest of the team use Eclipse?
I think you can do it, you'll just have to explicitly define a sourceSet that matches the Eclipse structure. If you use any other build variants, they can't have any sourceSets because you wouldn't be able to check those files in to source control. However, there are several useful things you can do with build variants just with the build file. I think you can check in the build.gradle and other gradle stuff and it won't mess up your coworkers.
I posted this question on the IntelliJ community forums but it seems as if they aren't very active so I'll just post it right here on S/O. I'm new to IntelliJ and I'm switching to use it from Eclipse which was really buggy and not useful to my needs. However, I'm attempting to build an Android project in IntelliJ Idea and it is only creating a .idea folder and the src directory without any inner files in them like it should. I've got the Android-SDK properly installed and I'm using JDK 1.7 and I'm even following the directions to properly start an Android project from the IntelliJ Wiki (found here) but it still leads me to no success. It seems as if I've got the Android Support plugin already installed with my program but then again I'm not really sure. Can I get some help please so I don't have to revert back to Eclipse again? Thanks.
Try to delete Android SDK and install it again, then download at least one Platform. IDEA runs SDK tools to create Android project template, for some reason it's failing on your system.
Check if it works better with JDK 1.6.
See the screencast that I've just recorded.