Collated and summed up 9 Android development errors and solutions, together to explore progress!
1. If your project's R file is missing , you can try to change the version number in the Save, R file is not generally the layout text error caused.
2. Layout files may not have uppercase letters
3. Throw the following error warning:application does not specify a API level requirement!,
Modify the Androidmanifest.xml file because the Users SDK is not specified.
Join: <uses-sdkandroid:minsdkversion= "8″></uses-sdk> # #
4. Machine memory bottleneck, when APK is larger than our machine memory, the simulator mercilessly throws
Installation error:installfailedinsufficient_storage Please check the logcat output for more details. Launch canceled!
Let's not debug, now we have to cure this problem, there are two ways to solve
First Kind (APK is less than machine memory only, and the current apk is installed, just can't debug again)
Start the emulator and go to the menu
Settings->applications->mange
Applications-> Select the Application->select "Unistall".
This will remove it completely, and then reinstall the APK will be no problem.
The second Kind General
-partition-size 128
Eclipse is added in the options for the project target. ##
5. When you start the Android emulator, if prompted: Failed to install on device ' emulator-5554′: timeout
This is possible because of a card that causes a startup time-out, Solution: ADB---DDMS-----Preferences, Windows---------------- A long time set, the default is 5 seconds is 5000ms, I changed to 10 seconds is OK.
This will not have to restart the simulator every time. Specific time settings according to the actual environment need # #
6. During the development process, it is often reported when the APK is installed on the simulator
ActivityManager:Error:Activity class {..} does not exist.
Such errors, here are summed up two ways to solve:
See if there are '. ' Before the name of the main activity in the Androidmanifest.xml file. Character # #
7 This error occurred while running eclipse
No Launcher Activity found!
The launch would only sync the application package on the device!
Solutions
Add in Androidmanifest.xml
<category android:name= "Android.intent.category.LAUNCHER"/> # #
8 The following error occurred and no SD card permissions were written Java.io.FileNotFoundException:/mnt/sdcard/update.zip (Permission denied)
Workaround, the resource file writes the following permissions
<uses-permissionandroid:name= "Android.permission.WRITEEXTERNALSTORAGE"/> # #
9. When the runtime appears re-installation failed due to different application signatures .
solution
(1) cmd, Go to command line, CD to Platform-tools under SDK, execute command: ADB uninstall application's package name
Results success, re-run it again
such as E:\android\ android-sdk-windows\platform-tools> adb uninstall COM.WTT
Success
(2) Uninstall the application that is already installed on the phone with the same name as the program.
based on the above 9 kinds of Android development errors, if you encounter Android app two times to pack, crack, inject malicious code, you can seek security protection of encryption solutions, Dex Source Protection , there are various applications of Security Protection Solutions available for selection
9 Common Android Development bugs and Solutions