Could not find com.android.support:appcompat-v7:21.0.3.Reason: Android support Library not installedWorkaround:
Enter Avd/tools
Execute command Android list sdk-a
Find the serial number in front of the Android support Library from the list, I see 143
Execute command Android update sdk-a-U-
[Android] Some useful properties of the GridView and issues needing attention, androidgridview
1. When the paddingtop value is set, the content does not pass through the paddingtop area (as shown in) during scrolling. The solution is to set android: clipToPadding = "false ".
2. When the paddingright attribute is set, the scroll bar is displayed. to display the
, network, memory, GPU curves of each process, find the crest rule from the curve (there is no loop operation), Judge the curve rationality (is not reasonable logical operation), Unreasonable place use TraceView to trace suspicious process, find out which method consumes CPU to optimize;The power consumption of the foreground static interface of the tested application is mainly considered two parts:
Loop execution logic associated with the current interface
Loop execution logic unre
integrated Android development eclipse better!!!Email: [Email protected]Thank you very much ============ Solution 1============I also ah ~ tangled for a long time, do not know, before how to download ~ Just get the way ~ to share the ~Under SDK manager tools->options Open SDK Manager settings, select "Force https://... sources to be fetched using http://...", Enforces the use of the HTTP protocol.WINDOWS opens the/etc/hosts file in C:\WINDOWS\system3
. caused the activity of memory leak, done!!!How to discover memory leaksThe previous methods for analyzing memory using Android Studio and Mat are described separately. Android Studio's own memory analysis tool is intuitive and convenient, but its functionality is not as powerful as the mat, especially when there is no effective search and sorting capabilities. Faced with some tricky problems, you might wa
Java_home2. You can try JDK 1.7Problem 5:gradle DSL Method not Found:runproguard ()After you upgrade Gradle or update import some non-android studio project will find the following errorGradle DSL method not found: ' Runproguard () 'Countermeasures:In the new version of Gradle, Runproguard This method has been deprecated, and changed to a new method: Minifyenabled. Therefore, the correct workaround is not to modify the version number of the Gradle, b
to change is the app directory Build.gradle, here to note is the app directory Build.gradle, add the following codedependencies { Compile project (': Slidingmenu-master ')}This is also the name of our Import class library. This time we open file--->project StructureYou can see the class library that we imported. We have not finished the word here, and we will make an error when compiling it.4. Also add a Build.gradle file in the project Slidingmenu-master directory, as follows:Buildscript {
: Android Studio Series Tutorial Five –gradle command in detail with importing a third-party package
Error:execution failed for task ': Batman:transformresourceswithmergejavaresfordebug '.Com.android.build.api.transform.TransformException:com.android.builder.packaging.DuplicateFileException: Duplicate files copied in APK Meta-inf/maven/com.squareup.okio/okio/pom.xmlSolution: Refer to StackOverflow an answer. In the Build.gradle file, add: packagingO
SolveAndroidThe problem with the simulator card is slowThis article describes the use of Intel HAXM technology to accelerate the Android emulator, which makes the simulator run as fast as the real machine.Intel HAXM(Hardware accelerate execution Manager) uses Intel(R) -based Virtualization Technology(VT) hardware acceleration, therefore requires CPU support VT, and is limited to Intel CPUs, and AMD missed.Steps:1. Download and install the Intel HAXM
, you may need to cache some methods Findclass/getfieldid/getmethodid return IDs, do not cache jnienv*, and do not attach native threads to Java throughout the application's lifecycle Thread. With the ADB shell setprop debug.checkjni 1 command, you can debug some JNI errors that do not affect applications that are already running. JNI in ART mode may throw some Dalvik errors that can be caught with Checkjni, which is the command line above. For example, when Proguard to confuse the code, take of
October 16, 2014 Google released a new Android 5.0 system, to bring users fresh functionality and fresh interface, but also to the application of new challenges. When the app encounters 5.0, have you ever experienced a startup failure, a control that is incompatible, a fan-like flashback ? So there's more compatibility issues you haven't found yet?In order to make the application of the vast number of devel
The HotPatch hot fix on Android was invented by Ali, the domestic is very innovative in this area, I mainly focus on the security of HotPatch. This is a comprehensive introduction to the domestic application of the hot repair technology article but did not mention the potential security issues: Http://www.infoq.com/cn/articles/Android-hot-fixImproper use of HotPa
============ Problem Description ============Using HttpClient 4.2.5 wrote a service class, in Java run a variety of Huanhuan, to the Android error:caused By:java.lang.IncompatibleClassChangeError:org.apache.http.params.SyncBasicHttpParamsIncompatibleclasschangeerror should be a kind of conflict, ask how to solve. I have copied the relevant jar packages of httpclient4.2.5 to the project myself.============ Solution 1============The Java jar can not be
efficient use of hardware acceleration switches:Reduce the number of views in your applicationAvoid OverdrawDon ' t create render objects in Draw methodsDon ' t modify shapes too oftenDon ' t modify bitmaps too oftenLater turned on the Android developer option to check whether the feature was over-drawn, it was found that the interface was obviously over-drawn. Here basically can be drawn, this interface due to open hardware accelerator high probabil
occupied heap memory to one end of the heap, and the JVM allocates the compiled memory to the new object.(2) Disadvantagesresource-intensive, unpredictable, unpredictable, non-operational. The university teacher said a very vivid words, "only pull not clean up." This is a very bad habit, in the programming process, or should have a certain degree of programming literacy. What is used and destroyed in time when it is not needed.Three. View app memory Allocations1. Monitor the memory situation th
encoding. )。3, multi-resolution display problem4, shortcut menu and back key operationOn the Android platform, this is relatively simple ...5, join the advertising technology6, customize the title name of your game softwareThis only needs to modify the contents of App_name in the file Strings.xml in the Res\values directory, and it is recommended to do it in eclipse.This article is from the "Green Peak" blog, please make sure to keep this source http
PID
By log level: Filter by Log rank
Regex: Indicates that a regular expression can be used to match
The above filter conditions can be combined.I built a filter for data, and the filter is that tag equals data. By selecting Filter as data, our log is missing because it does not match the log with the tag equal to data.Now go and change the tag of our log in the OnCreate () method to data. As shown below:
LOG.D ("Data", "______________oncreate execute______________");
AMS there are several common problems in the following: 1. Low Memory issues 2. Performance Issues 3. Activity Jump Problem 4. Slow reception of broadcastsLow Memory issues: 1. View kernel.log keyword sendsigkill / Lowmemorykiller 2. search through the application process name in the above search results, note that the process name in Kernel.log is printed to i
Asynctask is a simple, lightweight, multi-threaded class that Android provides to developers, and through it we can easily create a new thread Chengyang do time-consuming operations in the background (such as IO operations, network access, etc.) and update the UI during this process. It is lightweight because it does not need to use the knowledge of handler, thread and so on, it is relatively simple to use, but also loses some flexibility, it is incon
and is used to show the progress of the task execution.
OnPreExecute () Here is the interface when the end user calls Excute, and the progress dialog can be displayed here before the task executes before calling this method.
Oncancelled () The action to be made when the user calls Cancel
Using the Asynctask class, here are a few guidelines to follow:
The instance of the task must be created in the UI thread;
The Execute method must be called in the UI thread;
Do no
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.