Gradle guide to java

In fact, I have always been used to build projects with maven, but yesterday I downloaded the source code of spring, and others have switched to gradle, and then I will simply learn the gradle, a typical application driven learning, and learn what new content I need The short tutorial is as follows: ...

Posted by dammitjanet on Sun, 08 Mar 2020 09:23:53 +0100

Android and Flutter hybrid development UI interaction

Preface I'm an Android Developer. I'll just introduce the hybrid development of Android and Flutter here. There are many related articles on the Internet about the mixed development of native and Flutter, which are basically done by using the methods of FlutterView and FlutterFragment. However, in th ...

Posted by robche on Fri, 14 Feb 2020 11:59:52 +0100

android zxing parsing QR code pictures and generating QR code pictures

About generating QR code pictures: Using zxing package to generate QR code under Android The QRCodeUtil provided in is everything. Very convenient. About parsing the QR code picture, get the content: public Result parseInfoFromBitmap(Bitmap bitmap) { int[] pixels = new int[bitmap.getWidth() * bitmap.getHeight()]; bitm ...

Posted by zackat on Fri, 31 Jan 2020 14:44:30 +0100

Installation and use of Jenkins

What is Jenkins? Similar to Travis CI, it is simply an online code building platform Official website https://jenkins.io/ install The server Service provider: Tencent cloud System: CentOS 6.8 64bit CPU: 1 core 1G Memory: 2G Hard disk: 50G Environmental configuration In this article, I mainly configur ...

Posted by MishaPappa on Thu, 02 Jan 2020 12:29:43 +0100

IJKPlayer playing video

Operation effect Supporting video: http://toutiao.com/item/6431719005085499906/ Using steps 1. Add the following code to build.gradle of the project (as shown below) allprojects { repositories { ... maven { url "https://jitpack.io" } } } 2. Add dependency in the Module' ...

Posted by mkosmosports on Thu, 02 Jan 2020 11:47:58 +0100

Message push using the Alliance

Integrate: 1: first, go to his official website to register an account of the alliance. Transfer gate: Official website of the Alliance Then use it now to create a new app: the name of the app you created is the same as the name on your project. Be sure to write the package name correctly. The package name is the packag ...

Posted by sbarros on Thu, 02 Jan 2020 03:12:23 +0100

Recently, I used TextPathView to record

  . introduce use TextPathView is a custom control that transforms text into path animation and then displays it. The effect is shown above. Gradle compile 'com.yanzhikai:TextPathView:0.1.3' minSdkVersion 16 If you encounter a problem that disappears after playing, turn off hardware acceleration, which may not support t ...

Posted by nonexistence on Thu, 19 Dec 2019 22:37:49 +0100

Android studio version 3.1 and butterknife version 8.8.1 are incompatible. The pro test is effective

Due to importing other people's projects and changing the version number of gradle, the project always reported an error. Finally, it was found that the problem was in ButterKnife when I looked up the data. Some people had NullPointerException, and my error was as follows: gradle version number classpath  'com.android.tools ...

Posted by seanstuart on Tue, 17 Dec 2019 17:25:45 +0100

Simplest state switching layout

Simplest state switching layout Function introduction Loading data Data load failed Data load is empty Network load failed Retry click event Support custom layout Rendering display The simplest way to use it 1.Add it in your root build.gradle at the end of repositories: allprojects { repositories { ... maven { ...

Posted by hypuk on Sun, 15 Dec 2019 18:20:07 +0100

Spring boot extends URLClassLoader to implement nested jar loading

To: https://segmentfault.com/a/11900013532009 In the last article Spring boot application startup principle (1) embedding startup script into jar The principle of how springboot integrates the startup script and Runnable Jar into Executable Jar is introduced in so that the generated jar/war file can be started directly This article will show h ...

Posted by greywire on Fri, 13 Dec 2019 10:57:49 +0100