During the development thing are not worked as they wanted to do that work. We face common errors or issue while developing the applications. Here we discuss about the common problems and how to resolve that issues.
When to clean our projects
- when your gen folder is missing .
- when you face build path error during the execution
- unable to create R.java file into gen folder
this error mainly occurs when we are not following the standard rule in resource folder
1. every image resource you are using naming convention required small alphabetical character to assign the image file name without any space , or any capital letter.. If there is any capital character of space or any special character you are using rectify them as per the naming convention rule.
For reference go through this link :https://source.android.com/source/code-style.html
To solve any of these errors, go to the project menu and select → .
If you have library projects, make sure to clean them too.
Problems with Android Debug Bridge (adb)
Android debug bridge (adb) is used to communicate between our application and Emulator or Device. When you run your projects as Android application adb sends .apk file to our device or to the running emulator. ADB is used to handle the communication error in Emulator.
Eclipse allows to reset adb when user face this kind of errors. Select the DDMS perspective via
Window->open perspective->DDMS
To restart the abd selection the "Reset adb" from the device View.
Emulator is slow
That is the common problem developer face as our emulator is slow during the execution of our problem. to rectify this issue you need to follow these steps.
1. Download intel HAXM and install it from the following link
2. If there is an error while installing the intel HAXM then you need to proceed to following link
3. now configure your avd with intelx86 and intelx64
and start the emulator
Emulator doesn't start
Check your android-sdk is in a path without any spaces or not because if it is not that emulator does not start
Emulator time out during the deployment
If you face timeout issues during deployment you can increase the default timeout in the Eclipse preferences. Select → → → and increase the ADB connection timeout (in ms) value
ActivityNotFoundException :
Unable to find explicit activity class exception
- The activity is not declared in manifest.
AndroidSecurityException :
- You need to declare all permission in the application Manifest that your application check this link (internet, access to contact,gps,wifi state,write to SDCard, etc)
Application not responding(ANR):
- Mainly comes when you are making network function,or some long process.


0 comments:
Post a Comment