Team Project-bug Troubleshooting-adt Engineering to Android Studio a full day of troubleshooting diary

Source: Internet
Author: User

4-22 10:44 to 4-23 0:45

① open eclipse from GitHub on clone Mathsapp to native, error ' unable to resolve target ' android-19 '

② attempt to import Android Studio1.5.1, directly change targetsdkversion and Compilesdkversion to 23 (Android 6.0), first run successfully

At that time was exceptionally happy, thought a big difficulty already passed. However...

4-23 8:30 to 4-23 11:56

① received an upgrade message from Android Studio 2.0.0, plus saw news that 2.0.0 supported instant running, decisively shut down current Android studio 1.5.1, uninstalled cleanly, and re-installed Android Studio 2.0.0.

② when I opened Android Studio 2.0.0, I felt a deep malice from Google ... Previously well-run program engineering suddenly had a red fork.

③ took it for granted that 2.0.0 needed a new plugin support, and opened the SDK with a decisive update of 2 clocks.

4-23 12:30 to 4-23 16:41

① Open Project still found unable to build, stuck on an error:

AAPT err (facade for 2069296074): libpng error:not a PNG file

② then began to suspect is not a new AVD problem, encountered error, so to the TA consulting on the real machine test problems, open the ADB switch, directly to the real machine operation, but still failed.

4-23 16:41 to 4-23 23:03

① Every click on a class file on the exception, so point into the class to see the code, found comments and special fields in Chinese all garbled, then the UTF-8 replaced with GBK, click-to-change, Chinese garbled problem solving, Build, is still the error.

② thought it was the loading problem that caused the assembly to remain a UTF-8 assembly, so quit the project and reset the default open mode to GBK.

③ open process stuck, forced to end the process, thinking that the source code corruption, clone Mathsapp re-import Android Studio.

④rebuild project, cannot be wrong.

⑤ and the TA together from the error hints carefully, found that the PNG file (sRGB and ARGB read) problem, then search the PNG file, unable to troubleshoot the problematic PNG.

⑥ try new project, AVD and real machine test run, found no problem;

⑦ try to write Mathsapp Java class in the new project, import Mathsapp res resource, Build still fails, error remains.

⑧ trying to uninstall Android Studio 2.0.0, install Android Studio 1.5.1, import the original Mathsapp, modify the API, error and 2.0.0. This can be ruled out as a compiler problem.

4-23 23:03 to 4-23 23:41

① Note that the second compile-time error has changed, indicating that F1.png, P1.png, and start.png are wrong.

② Direct use of the original folder without error in the PNG replacement error Png,ps Open the process of the other PNG also try to open, found bgr.png How also can not open, by the way to change it.

③ back to the project build, error and 2.0.0 build when the same, put the troubleshooter outside the picture, see Androidmanifest.xml found encoding= "Utf-8", search related knowledge found UTF-8 for Android default encoding method.

④ back to the place of garbled, decided to change class first to GBK, copy not garbled the entire class, back to UTF-8 garbled state, replace garbled.

⑤ rebuild, success, no warning no error,run, successfully loaded into AVD

At this point, one day the wrong job is over.

Summarize

① garbled will cause other error prompts, affect the compilation build, click UTF-8 to GBK just compiler read for GBK Chinese, but still in the compilation process is used garbled build

② picture chromatic aberration (Srgb/argb/cmyk) and so on will cause compile error

③ very grateful to the Teaching assistant's patient guidance, not only learned the knowledge also learned the open-source cooperative attitude, all day down the teaching assistants are all the way together to discuss, solve problems, not too many students annoying small problems, ta's enthusiasm and patience let me very touched. It's lucky to meet such a nice assistant.

Follow 4-24 2:01 to 4-24 2:07

① try to re-copy the original PNG image in the case of a new encoding overwrite the previous project, Build, and find that the project continues to fail. The conclusion of two kinds of bugs is also proven.

② re-use PS Open error file overwrite save, build nothing wrong, run normally

③ update to 2.0.0, open the project very slowly, change the project file under the

/.gradle/

/2.10/

/gradle/warpper/gradle-wrapper.properties

Distributionurl=https\://services.gradle.org/distributions/gradle-2.10-all.zip

/build.gradle

Classpath ' com.android.tools.build:gradle:2.0.0 '

Automatically update the index project to complete all updates

Team Project-bug Troubleshooting-adt Engineering to Android Studio a full day of troubleshooting diary

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.