Android Debugging Experience

Source: Internet
Author: User
1.phone of Aidl compilation does not pass
When the Android phone application was imported into Eclipse, Aidl compiled, and finally found that the import of the original AIDL only supported a limited type.
So import Com.android.internal.telephony.gsm.NetworkInfo compilation does not pass, the solution is to the corresponding Android SDK directory to find Framework.aidl in the Add parcelable Com.android.internal.telephony.gsm.NetworkInfo, it's okay.


2. Error message:
ActivityManager:Warning:Activity not started, it current task has been brought to the front
Wrong time to quote:
When you start with the Android Application mode (or the corresponding debug mode), you may have an error
The reason for the error:
Because the task we are currently launching into the emulator is being executed.
Solution:
It is OK to return the emulator to its original state and then resend it to the emulator execution.


3. When the compilation does not pass the possible reason is not to set the Linux environment variables


4. Error message:
Installation error:install_failed_shared_user_incompatible
The reason for the error:
As a result of the signature problem.
Solution:
Set Export Tar_get_product=sprdroid_base
Run MMM package/apps/settings (different application different paths)
This will generate a. apk file and install this apk file on the destination machine OK


5. Error message: Installation Error:install_failed_insufficient_storage
The reason for the error: because the mobile phone installed on too much of the use of mobile phone memory is not enough
Solution:
Remove all installed apk files on the phone


6. Error message: The object returned by the call Findviewbyid is empty
Solution: Remove the R.java file and regenerate the item clean




7. Error message: Install the application through eclipse to the terminal, the error is as follows: Install_failed_shared_user_incompatible
Cause: Problems caused by inconsistent signature in application
Solution: Compile the application using MMM specific path on the server, install the compiled APK file
For example: Need to install phone this application, found that because of the signature problem installation error
Then compile the phone separately on the server via MMM package/apps/phone, and then install the compiled APK file



Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.