Summary of problems encountered during android Development [6] and android Summary

Source: Internet
Author: User

Summary of problems encountered during android Development [6] and android Summary
190. Genymotion Crash after a few minutes

E/eglCodecCommon (2163): writeFully: failed: Broken pipe

Http://stackoverflow.com/questions/23855115/genymotion-crash-after-a-few-minutes

It's not really caused by your application, so don't worry.It often happens when you computer goes in sleep mode and when you come back Genymotion will throw this exception (it happens to me very often).In your specific case sounds like the device goes in sleep mode so a way to fix it is simply to enable "Always stay awake" in developers options.
192. A WebView method was called on thread 'timer-1'. All WebView methods must be called on the UI thread. Future versions of WebView may not support use on other threads.

Java. lang. IllegalStateException: Timer was canceled
At java. util. Timer. scheduleImpl (Timer. java: 561)
At java. util. Timer. schedule (Timer. java: 481)
At com. jetsun. hbfc. activity. base. CommonWebViewActivity $3. onPageStarted (CommonWebViewActivity. java: 178)

Webview reload page get force close

Change your TimerTask to the following:

New TimerTask (){
@ Override
Public void run (){
RunOnUiThread (new Runnable (){
Public void run (){
WvNovaMenzaCammera. reload ();
}
});
}
}

193. http://blog.csdn.net/xieyuooo/article/details/8607220

Principles and usage of Timer and TimerTask

194. http://233.io/article/1057296.html Fragment communication problems, why not pass the parameter 195.Add a new file in Intellij doesn't add to subversion in the constructor?
http://stackoverflow.com/questions/2817452/add-a-new-file-in-intellij-doesnt-add-to-subversion    Go to File -> Settings -> Version control -> Confirmation -> When files are created You're probably looking for "Add silently".
196. use the lint of Android Studio to clear unwanted resource file http://waychel.com/shi-yong-android-studiode-lintqing-chu-wu-yong-de-zi-yuan-wen-jian/197. when the Android app release signs the package, the following error occurs: "XXX" is not translated in "af" (Afrikaans), "am" (Amharic), and "ar" (Arabic) .....

Eclipse
Http://blog.csdn.net/u012264122/article/details/39371343

Androidstudio http://stackoverflow.com/questions/20699147/gradle-build-fails-on-lint-task

// This is important, it will run lint checks but won't abort build  lintOptions {      abortOnError false  }if abortOnError false will not resolve your problem, you can try this.lintOptions {    checkReleaseBuilds false}
198.

Improves the running speed of Ubuntu Linux

1. Six tricks for your Ubuntu to immediately speed up the http://article.yeeyan.org/view/205625/294577 Where did the startup-applications-preferences program go? Ubuntu satartup applications preference http://askubuntu.com/questions/159887/where-did-the-startup-applications-preferences-program-go The if you can't find the program anywhere, try running gnome-session-properties from the command line (or alt + f2 ). if it's not installed, I'm sure you can install the package gnome-session-properties.2. it is said that this method can improve the problem of slow application startup in GNOME after a Ubuntu segment is used # Vi/etc/hosts 127.0.0.1 localhost 127.0.1.1 Ubuntu ==> 127.0.0.1 localhost Ubuntu 127.0.1.1 Ubuntu Note: add the host name at the end of the first line, that is, the name of the second line. 3. install preload to pre-load some commonly used lib libraries and applications to the memory to increase the startup speed of the Program # apt-get install preload
199. volley due to slow network access, resulting in two accesses phenomenon http://stackoverflow.com/questions/22428343/android-volley-double-post-when-have-slow-request?
    http://stackoverflow.com/questions/3352424/httpurlconnection-openconnection-fails-second-time
200. when you want a child control fillparent with a low height value than scrollview, defining android: layout_height = "fill_parent" alone does not work. The fillviewport attribute must be added, when the height of the sub-control is greater than the height of scrollview, this label has no meaning. 201. activity FLAG_ACTIVITY_REORDER_TO_FRONT cannot startActivity http://blog.csdn.net/mingli198611/article/details/8678513202. Genymotion simulator run project jPush error jpush Couldn't load jpush: findLibrary returned null

At cn. jpush. android. api. JPushInterface. init (Unknown Source)

203. Check for updates in androidstudio. Android Studio supports automatic update check. When the official version has not been released before, it may be updated several times a week. You can set the check type to control the update type.
Settings --> Updates. Check for updates in channel to enable automatic update Check. You can disable automatic check for updates. The list on the right is the update channel. Stable Channel: the official version Channel. Only the latest official version is available. Beta Channel: Test Channel. Only the latest test version is available. Dev Channel: The development and release Channel. Only the latest development version is obtained. Canary Channel: Specifies the preview publish Channel. Only the latest preview version is obtained. Rc release candidates

Among the above four channels, the Stable Channel is the most Stable and has fewer problems. Canary Channel can obtain the latest version, which has many problems.

204. Drag Android: fastScrollEnabled = "true" android: focusable = "true" 205. Lint: How to ignore "is not translated in" errors?

Http://stackoverflow.com/questions/11443996/lint-how-to-ignore-key-is-not-translated-in-language-errors
To ignore this in a gradle build add this to the android section of your build file:

LintOptions {
Disable 'missingtranslation'
}

Authentication Error errorcode: 201 uid:-1 appid-1 msg: the APP is disabled by the user.

Ubuntu apktool 2.0 Exception in thread "main" brut. androlib. err. UndefinedResObject

Keytool-list-keystore SportsApp. keystore

206. Exception in thread "main" brut. androlib. AndrolibException: cocould not decode arsc file
at brut.androlib.res.decoder.ARSCDecoder.decode(ARSCDecoder.java:56)at brut.androlib.res.AndrolibResources.getResPackagesFromApk(AndrolibResources.java:491)at brut.androlib.res.AndrolibResources.loadMainPkg(AndrolibResources.java:74)at brut.androlib.res.AndrolibResources.getResTable(AndrolibResources.java:66)at brut.androlib.Androlib.getResTable(Androlib.java:50)at brut.androlib.ApkDecoder.getResTable(ApkDecoder.java:189)at brut.androlib.ApkDecoder.decode(ApkDecoder.java:114)at brut.apktool.Main.cmdDecode(Main.java:146)at brut.apktool.Main.main(Main.java:77)

Caused by: java. io. IOException: Expected: 0x001c0001, got: 0x00000000.
At brut. util. ExtDataInput. skipCheckInt (ExtDataInput. java: 48)
At brut. androlib. res. decoder. StringBlock. read (StringBlock. java: 44)
At brut. androlib. res. decoder. ARSCDecoder. readPackage (ARSCDecoder. java: 102)
At brut. androlib. res. decoder. ARSCDecoder. readTable (ARSCDecoder. java: 83)
At brut. androlib. res. decoder. ARSCDecoder. decode (ARSCDecoder. java: 49)
... 8 more

It seems there's some problem in building the resources while recompiling the apk. what you can do is, when you decompile your apk use this command

Apktool d-f-r apkfilename.apk
Here-f is to replace previous decompiled apk's code and-r is to ignore the decompiling of resources.

This wowould prevent the resources from being decompiled and will simply copy the same resources when you recompile the apk.

208 android sharesdk shares how to obtain the application signature required for creating an application

According to a tool Signature generation tool provided on this page
Https://open.weixin.qq.com/cgi-bin/readtemplate? T = resource/app_download_android_tmpl & lang = zh_CN
Download Android Resources
Development Kit
Libraries and files required for third-party application development. Click to download
Sample Code
Contains a complete sample project. For more information about how to use this example, see HelloWeixin @ Android. Click to download
The signature generation tool is used to obtain the apk package signed by a third-party app installed on the mobile phone. Click to download

It can be a string, similar:
Application Signature: 049a9fde46bfc5087f3825582208b248
You can install this app to obtain an android software that has been installed on your mobile phone. The package name is similar to com. demo. AppX to find the software and obtain the app signature of the software.
Another tool is
Http://wiki.open.qq.com/wiki/mobile/sdkdownload
Android_SDK_V2.3.1 has a named .apk under the tools Directory, which can also be obtained. However, my test showed that only some local applications can be displayed, and some applications cannot be found, which is troublesome ..

209.: app: lintVitalRelease

Failed converting ECJ parse tree to Lombok for file/home/yyb/work/BoShiTong/trunk/HBFC/Android/Comment/HBFC-AS2/app/src/main/java/com/jetsun/ hbfc/widget/ioc/AbIocView. java
Java. lang. ClassCastException: lombok. ast. Annotation cannot be cast to lombok. ast. Expression

210. Ignoring InnerClasses attribute for an anonymous inner class211.WebView the onPageFinished () callback will be called once more on the Android4.4 mobile phone (the specific cause is to be traced)

Do not perform business operations in onPageFinished (). Otherwise, repeated calls may occur and logical errors may occur.
OnPageStarted and onPageFinished are loaded twice.

Related Article

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.