Gradle compilation acceleration

I. Analyzing the Reasons for the Slow Construction of Gradle 1. Configure Gradle to build reports File --> Settings --> Build,Execution,Deployment --> Compiler Modify Command-line Options: Content, append -- profile 2. View the generated gradle build report Sync Project , build , run, Make project ... The reports f ...

Posted by PoOP on Sun, 03 Feb 2019 00:24:17 -0800

Compiling libyuv of Android Platform in Windows

1. description As for libyuv [1] The use is not to be overlooked. Following is an official note Scale YUV to prepare content for compression, with point, bilinear or box filter. Convert to YUV from webcam formats for compression. Convert to RGB formats for rendering/effects. Rotate by 90/180/270 degrees to adjust for mobile device ...

Posted by river001 on Sat, 02 Feb 2019 15:06:15 -0800

Construction of NDK Development Environment for Android Studio 3.x under Mac

Catalog Preface CMake Adding C/C++ code to existing AS projects with CMake ndk-build Last Preface It's really easy to install software on mac. android studio can be installed next step along the way. Here's an article. Install and configure Android Studio 2.x and 3.x under Old Text-Mac and configure using adb For reference.The main purpose ...

Posted by johnbest on Sat, 02 Feb 2019 08:18:17 -0800

[react-native] Version 0.57 Packing Error, SDK Version Mismatch: Execution failed for task'xxx: verify Release Resources'

react-native version: 0.57.1 This is not an rn version problem, because 0.57.1 updates the Android SDK version to 27, which is incompatible with most third-party plug-ins that use native code, because third-party updates are not timely, SDK is still the old version. Let's start with the error log: error: invalid file path ...

Posted by DeadFly on Thu, 24 Jan 2019 16:00:13 -0800

Android switching between Chinese and English to resolve the weight loss conflict

Follow the steps I. AndroidManifest.xml file (manifest file) Add: android:configChanges="locale" <activity android:name="com.activity.RepairActivity" android:configChanges="locale" android:launchMode="singleTop" android:screenOrientation="portrait" android:windo ...

Posted by Megahertza on Thu, 24 Jan 2019 04:54:13 -0800

Andrid Studio Gradle sync failed: A problem occurred configuring project': app'solution

This error occurred while I was working on Gradle sync in Android Studio. The Android Studio error prompt was Gradle sync failed: A problem occurred configuring project': app', and the last lines of the error log were like this. 2018-10-30 21:05:30,041 [thread 106] WARN - ect.sync.idea.ProjectSetUpTask - A problem occurred con ...

Posted by jp2php on Wed, 23 Jan 2019 00:42:13 -0800

Android XStream parses xml data into bean s to support CDATA

Reference resources 1,Android parses complex xml into javabean using XStream 2,XStream supports CDATA Tags 3,Retrofit Accesses Web Service with Soap Protocol Example Keep the previous retrofit article after accessing web service, and finally until the access is successful, until the CDATA data needs to be parsed, continue the fol ...

Posted by dniezby on Tue, 22 Jan 2019 21:57:13 -0800

04. Handwritten ButterKnife(ButterKnife source reading)

Source address: https://github.com/renzhenming/MyButterknife I believe that most Android developers are using ButterKnife for code generation. There are several advantages of using ButterKnife. Firstly, to improve the efficiency of development, we can generate all the View objects in the layout or set the click events of View in on ...

Posted by dstonek on Sat, 19 Jan 2019 21:21:12 -0800

Caused by: java.io.IOException: error=2, No such file or directory

Caused by: java.io.IOException: error=2, No such file or directory In a refreshing mindset, recently upgraded Android studio to Android Studio 3.1.2. After the upgrade, the project suddenly failed to compile and run properly. :app:transformNativeLibsWithStripDebugSymbolForDebug Caused by: java.io.IOException: error=2, No suc ...

Posted by nazariah on Sat, 12 Jan 2019 17:36:11 -0800

android Weather app Based on MVP,Retrofit2,RxJava2

Recently, I learned MVP, Retrofit2, Rx Java2 framework. I feel I have gained a lot, so I decided to make use of my knowledge to do a great job. ps: You can see my previous blog about children's shoes that are not clear about these three frameworks Portal: MVP Retrofit2 RxJava2 Design sketch Let's not say much. Let's star ...

Posted by tanvirtonu on Sat, 29 Dec 2018 09:42:07 -0800