I am trying to get a downloaded sample code to work - everything seems ok, however, everytime I run the project I get the error
[2011-11-03 10:21:43 - viewflow] Could not find viewflow.apk!
The app works fine but I just like to get rid of this error message in the console everytime the app starts.
Many thanks
Try the following steps:
Go to Project->Properties
Select Android from left-hand side list
Uncheck the "Is Library" checkbox
--
Or try to delete the project from the workspace and re-import it.
--
Original post here.
Related
This problem happened like "out of the blue". When I tried to run the application at some point it came up with
configuration is still incorrect. do you want to edit it again
This message kept popping up, which I thought was a bit weird. So I endend up restarting Android Studio, but when it had loaded up again, all of the structure with folders etc. in the left side of the screen, were gone. Only a message saying "Nothing to show" is there now.
Also all of the files that were open before I restarted is still open, but has little "red J's" in the tap where the file name is.
The last edit to my project was that I changed the minimumSdkVersion of the gradle file, from 21 to 10.
Obviously changing this back, had no effect.
EDIT:
When I try to deploy the project anyways it gives me this error in the console:
Error running main: Module is not found
So I have really no idea on how to fix this or what is wrong, even though I have tried to research it.
I really hope someone can help me out or have an idea on what may be wrong.
Any help will be greatly appreciated.
If you build and deploy Android app from IDE/Studio to watch directly , you most likely will see Build Configuration screen and if you will clik "Run" you will get
"Build Configuration is still incorrect, do you want to edit it again?"
To solve it just check "Do not launch Activity" in Activity section of a "Run/Debug Configurations" of project.
or try these
check for the tags they may be not closed.
check for the package name in manifest file
check for the edit configuration , Then, check the bottom section "Before launch: Gradle-aware Make"
click on that small triangle to hide it. An error message should appear. This message may show you the error cause.
or Go to File->Project Structure-> Project Settings -> Modules, Click on the green colored and add new module. select Application module and set the content root to your project module.
or try to update the gradle as when studio starts it looks for gradle and sometime if not found it download it, may be your gradle have crashed so update it or manually place it.
I've installed Eclipse for android and that works okay. When I try to start a java-file I got the following error: Error occurred during initialization of VM
java/lang/NoClassDefFoundError: java/lang/ref/FinalReference
After some research I know it was something with buildpass but after trying I didn't got it to work. I removed it all (Eclipse, Java, Android) and reinstall everything but with the same disapointing result. Could somebody explain to me what to do because what I tried from the internet didn't work for me.
Find Running configurations -> java application
In the new configuration's Classpath tab, find "Android Library" under Bootstrap Entries and remove it.
Still in the Classpath tab, select Bootstrap Entries and click the Advanced button.
Choose Add Library and click OK.
Select JRE System Library and click Next.
Select Workspace Default JRE and click Finish.
Based on http://www.frickingnutz.com/files/android_pdf/FAQs.pdf
I have been frustrated by this error for several days, by comparing with my colleagues Eclipse preferences with mine, the problem was fixed by changing the Java compliance level from 1.7 to 1.6.
This will also change the generated .class files and source compatibility to 1.6.
If you tried running a specific java class, then every time you click the run button it will default to whatever you tried to run last.
Click the drop down beside the run button and choose specifically what you want to run.
Go to "run configuirations" under the "run" menu. Select the delete run menu. Do a clean and then you should be back and running again.
I was trying to use all the answers above but it doesn´t work.
This error happened when I wrote 1 method that returned a String [][] ( don't know why yet) but the error doesn't disappear when I disable (/* */) the method.
Finally I did 2 things:
Created a new Android Project and copy the files. rebuild the Activity.java and the manifest.xml.
It worked until I activate the method then the same error all over again:
VM java/lang/NoClassDefFoundError: java/lang/ref/FinalReference
and then
Error occurred during initialization of VM and no matter what I do, it didn´t work until I create another Android Project.
So the 2nd thing I did was :
Run-> Run Configurations->Java Application and click on New_Configuration then I clicked on the red X above (Delete selected launch configuration) and it worked ( not the method but the program worked when I /* */ it.)
when i'm trying to run an android project which shows the warning message :
Your project contains error(s), please fix them before running your application.
but there's no error showing in the code or other section on the project except the project name. like :
I've cleaned, refreshed the project but it remains same.
how can i identify and remove the error ?
thanks in advance
All errors and warnings with detailed description could be found on "Problems" view - usually a tab in the bottom right part of the eclipse window. If it isn't there, use Window -> Show View -> Problems to show it.
Let your tooling generate a new certificate by deleting your current certificate, see:
"Debug certificate expired" error in Eclipse Android plugins
Has the project worked before, but suddenly stopped?
Have you changed anything in the res folder? I've found that if you mess up one of your resource files (drawable, layout etc) it can have this effect. Double check to make sure none of your resources have spaces or capital letters in the name. If you have recently added a new drawable, try removing it temporarily to see if that fixes your problem.
Right click your project, click Properties and choose Java Build Path. Check the tabs there and see if you see any errors.
Sometimes resources there go missing due to folders being removed / moved causing the problems you're experiencing.
I am trying to run my application but it is displaying error in the project explorer
I had try to clean my application many time even restart the eclipse but no effect
It is displaying error and also it is not giving me any error in the console.
How to fix this issue?
EDIT
And also I remove all the reference lib and add again but still getting error.
Please follow the steps on this link. That user has the same problem. I have given answer there.
EDIT
solve this issue by following below steps
Go to Window => Show View => Problems
Now I can see the error like debug certificate expired
Now Delete the file ~/home/.android/debug.keystore
Clean Project
For more information refer this link
Check the problems and fix that. To view the problems == Window -> Show View -> Problems
i think the problem in the added library function, check the library files what you had added to this app. it shows error there remove it once and add again..
or
rightclick-->Android Tools --> Fix Project Properties..
All of my Android projects have error sign now, but there is no error in the project. I didn't edit anything but there is an error sign by each project now. The sign appeared first by 3-4 projects only, I didn't edit absolutely any of my projects and the sign appears now by all my projects. What can this be and how could I resolve this - I don't want to rebuild my projects from the beginning, of course :)
I already tried project->clean but I have again the error sign.
If you go to Window -> Show View -> Problems you can see exactly why the errors are there and take action accordingly. Usually, if there is no obvious error, cleaning your project can resolve the issue. However, there is clearly something else going on for you!
Try this
1) Right click on the project (in Project Explorer)
2) You should see Android tools towards the end. Click on it to get a list of options
3) Choose "Fix project properties"
Shash
Have you tried signing your application? Go through these steps and see what happens
http://developer.android.com/guide/publishing/app-signing.html
go to Project>>Clean ..try this..