Showing Error !!! Android - android

When i try to compile and build the application, a red mark is appearing on my application,but there is no error description ..
what will be the reason?

There is always a reason, just need to find it :) Try refreshing and/or cleaning your project. To find error description (in Eclipse) open Problems perspective.

Is probably a weird eclipse/android sdk error. Run Project Cleanup and it should go away.

Related

Android studio shows 'cannot resolve method/symbol'

Almost everywhere it shows 'cannot resolve method/symbol' and compilation problems.
I'm new to Android Studio. Can anyone help me set it up?
Image with link:
I think it's gradle's fault. Go and click build from the top options, then select clean project.
Since I cannot see the rest of the code, I assume this is the problem.

Eclipse FindBugs plugin fails with Android project asking for java.rmi.remote

I'm using FindBugs plugin 2.0.2.20121210 for eclipse Juno in an Android Project. When it starts fetching bugs it goes ok, but when it ends it shows an error at the Error Log tab that says
"The following classes needed for findbugs analysis on project xx were
missing: java.rmi.remote"
And it doesn't show any bug, even thought the counter that appears at the progress dialog while it's executing the analysis shows a number of them.
Is there any way to solve this?
Thanks in advance
I used the command line and disabled the following detectors aka visitors.
-chooseVisitors -FindUninitializedGet,-UnreadFields,-FindNullDeref,-BadAppletConstructor,-FindMaskedFields,-DontIgnoreResultOfPutIfAbsent,-ReadOfInstanceFieldInMethodInvokedByConstructorInSuperclass
Just for the record I managed to answer my question. I had to disable some of the Detector Configurations under Project properties->FindBugs->Detector Configuration

error in running android project

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.

Eclipse displaying error but not giving error in console

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..

What can I do with R cannot be resolved problem?

If I make a new Android project in Ecplipse and I try, to open one of the samples from android SDK, I have got an error, look like this:
R cannot be resolved
What can I do, to be able, to run these files? I tried to delete import android.R; but nothing changed.
Thanks
First thing you might try is "clean" your project (option in the menu). If it persists:
There should be an error that stops R from being generated. Check the "problems" tab (?) in eclipse to see what that problem is, and solve that. It could be missing libs, or various other stuff.
You possibly got error in building resources.
Possible fixes:
-refresh your project (F5)
-clean you project and refresh
-see "Console" tab, sometimes the problem is shown there
-reload the Android SDK
-restart the Eclipse IDE
Check your XML-Layout files. The problem come here half a time.
If you are sure it is note your layout file, check in your java build path if the google librarys are well set. (Google APIs)
(sorry for my bad english)

Categories

Resources