Eclipse-AndroidEmulator doesn't apply changes of the project - java

I am currently developing an Android app with Eclipse Indigo (including Android plugin).
Everything was fine in the beginning. Then I made some changes and saw that the debugging perspective doesn't apply any of the changes. It always loads the same outdated version.
Restarting debug-perspective doesn't help.
Cleaning the project doesn't help.
Relocating the workspace or restarting Eclipse or the computer doesn't work either.
I once could load the whole new project by completly deleting everything (including Eclipse, Android plugin etc.) and reinstalling. But this is not an option for every time I wanna try out a new method.
Funny thing: if I write some text in the EditText-fields the text will still be there when I restart the debugging.
Any ideas how I can fix this problem to get the actual project?

Solution: Create a device with snapshot deactivated.
It was on auto-activate in my version of android sdk.

Related

Android java class/symbol not found despite being placed in the same directory

I have encountered issues in my android studio regarding java classes/symbols not found, despite these classes and symbols being placed in the same directory, or under the same parent directory. I am making use of the DJI's mobile SDK for android.
Example of errors:
Cannot resolve symbol 'DJISampleApplication'
For illustration, here are 2 screenshots
First example. Clicking on "import class" causes android studio to create a brand new class instead of linking it to the existing one.
second example
However, oddly, when I go under "Build >> Make Project" , or "Run" to deploy on a real android device, the app can be installed, and there are no errors (only warnings).
Things I have tried:
Uninstalling and re-installing android studio
copying the whole project from the original files in again
Trying on another computer, which works. However, as i am only assigned this pc, i have to get this to work here as well.
Thank you in advance !
Your best bet is to invalidate caches and restart. Solves 99% of problems like this for me.
You can also try to reimport the project using the gradle tool window ...
Click the reload button here ...

What is the proper way to move android studio project from one computer to another

Hi guys I have created an android studio 2.1 project on my laptop sometime ago and have gotten pretty far with it. I now have a desktop PC that I would LOVE to put my project onto and continue development on. Everything builds just fine on the laptop but when i copy over the entire project over to my desktop it keeps giving me an error for the dex file being over 64k which is clearly not the case on my laptop. I believe im moving the project over to the desktop wrong. I tried many different ways but always get errors when doing so, the closes I got was when I went on my desktop and opened just the gradle.build file in android studio and let it load the project from there. But as stated earlier I get the "dex file exceeds 64k methods". Any help is appreciated.
dex error
create the git repository account and clone it from git repository on other system .
use the multidexEnabled option as true in build.gradle to avoid the multidexing issues

All of a sudden. Can't build my project(Game) & sync with Gradle (Libgdx)

So, i've been developing several Games for Android.
And im currently working on an update for my latest game.
I shut down my computer normally yesterday, no problems & no errors...
... Today when i logged into Windows & opened my project in Android studio i get this strabge error:
Gradle 'projectname' project refresh failed
Error:Cause: org/apache/commons/io/FileUtils
I don't know whats causing this error...
I can open my old project(game created with libgdx) and it works just fine.
But when i open my recent one it wont compile & gradle wont sync.
Even if i create a new project it will give me the same error.
Google Doesn't say anything about this :(....
what i've done to try fixing:
Reinstalled Android Studio
Removed all Java Version. JDK + JDE.
Updated All SDK, Raspitory, Google Play services, etc..
As my old project was created exactly in the same way & works, i find this very frustrating. The only things that is different from my new project is that my old game is created in an older version of Libgdx, older Version of Android Studio etc...
What's strange is that it all worked just fine yesterday!
Anyone?
i'm desperate. Put so much time into this project!
Try removing downloaded gradle dependencies for org.apache.commons.io from your system and rebuild the project. The downloaded dependencies can be found in .m2 folder (In linux it will be a hidden folder in home directory)

Why am I getting 'R cannot be resolved to a variable' on a previously working project(JAVA 8)?

I know that it has been asked thousands of times, but I really can't fix this at this momment. I'm trying to update an old project(already submitet to the play store). The only dependency was the v7 appcompact lybrary and so I added it to the new workspace and updated the existing project dep[endencie, but I'm still getting the strange R cannot be resolved to a variable error.
Here is what I'm doing and even if I'm 99% sure that it is what I have to do, it's not working.
Updating the project dependencie:
everything looks nice, but when I clean and rebuild the project, here is what happens:
and the problem is still there. I'm really going to start crying, because it was a working project, buta after switching to a new workspace and checking it out from my git repository, I can't get it working.
Do you have an idea what is going on? I know that I miss something small here, I know that it has been asked so many times, but I can't find an answer fitting on my case.
Remove library project android-support-v7-appcompact and add it again properly.
also check your package name in manifest file.
update SDK Build Tools on SDK Tools -> SDK Platform Tools, if not, please try it and clean & rebuild.
check imports to see any broken R.java imports. if there is "import android.R;" remove it.
check style and layout xmls to prevent any missing drawables or depreciates.
also see : R cannot be resolved - Android error
Just to tell my experience with this problem in a Java project with JDK8. In my case I was running the project in a Mac with Yosemite. Reading the specs. Android Studio and SDK, I've found that projects could be compiled up to Yosemite version.
I changed my environment variables to JDK7 and it worked!

Imported library is marked as an error right after i close propperties

So, I've recently started having some weird errors when I'm about to import the android support library v7 using eclipse, I follow the steps on the android site and everything is working fine. I am working towards 4.0.3 so I changed the target SDK on the v7 library to 4.0.3 and built it before i exported the jars. On my project properties everything looks great:
Dropbox image
But when I apply the settings, close the dialog and re-open it without doing anything else it looks like this:
second dropbox image
I've tried reinstalling the library and clean and build several times but i still get the same wierd error. Also, when i hover over the apperantly faulty library there is no error mentioned.
Copy your project and support library to workspace using eclipse. Basically they both should be in the same folder.

Categories