<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[afunx的专栏]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/afunx</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; afunx]]></copyright><item><title><![CDATA[No variants found for ‘:app‘. Check build files to ensure at least one variant exists.]]></title><link>https://blog.csdn.net/afunx/article/details/130903063</link><guid>https://blog.csdn.net/afunx/article/details/130903063</guid><author>afunx</author><pubDate>Sat, 27 May 2023 17:10:35 +0800</pubDate><description><![CDATA[本文介绍了android studio升级之后，如何解决编译问题：No variants found for ':app'. Check build files to ensure at least one variant exists.]]></description><category></category></item><item><title><![CDATA[Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported]]></title><link>https://blog.csdn.net/afunx/article/details/129973659</link><guid>https://blog.csdn.net/afunx/article/details/129973659</guid><author>afunx</author><pubDate>Wed, 05 Apr 2023 17:36:14 +0800</pubDate><description><![CDATA[Apps targeting Android 12 and higher are required to specify an explicit value for `android:exported]]></description><category></category></item><item><title><![CDATA[Android Studio Connect to repo.maven.apache.org:443 failed: Connection time]]></title><link>https://blog.csdn.net/afunx/article/details/129913028</link><guid>https://blog.csdn.net/afunx/article/details/129913028</guid><author>afunx</author><pubDate>Sun, 02 Apr 2023 16:50:41 +0800</pubDate><description><![CDATA[解决了Android Stuido连接repo.maven.apache.org失败的问题]]></description><category></category></item><item><title><![CDATA[Java Native Interface Specification Contents--Chapter 1: Indruction（翻译）]]></title><link>https://blog.csdn.net/afunx/article/details/118207030</link><guid>https://blog.csdn.net/afunx/article/details/118207030</guid><author>afunx</author><pubDate>Sat, 05 Nov 2022 21:57:33 +0800</pubDate><description><![CDATA[原文链接: https://docs.oracle.com/en/java/javase/16/docs/specs/jni/
第一章：介绍
&nbsp; &nbsp; &nbsp; &nbsp;这一章介绍了Java Native Interface（Java本地接口）(JNI)。JNI是一个本地编程接口。它使得Java代码可以在Java虚拟机中，调用由其他编程语言所写的应用程序和库，如C，C++和汇编。
&nbsp; &nbsp; &nbsp; &nbsp;JNI最大的好处是：它对底层JAVA虚拟机的实现]]></description><category></category></item><item><title><![CDATA[dlopen failed: library “libc++_shared.so“ not found]]></title><link>https://blog.csdn.net/afunx/article/details/124683852</link><guid>https://blog.csdn.net/afunx/article/details/124683852</guid><author>afunx</author><pubDate>Tue, 10 May 2022 11:24:44 +0800</pubDate><description><![CDATA[编译opencv库时，解决了ndk-build方式下，dlopen failed: library "libc++_shared.so" not found。]]></description><category></category></item><item><title><![CDATA[invalid stream header: EFBFBDEF问题解决－－ISO8859-1]]></title><link>https://blog.csdn.net/afunx/article/details/122784209</link><guid>https://blog.csdn.net/afunx/article/details/122784209</guid><author>afunx</author><pubDate>Fri, 04 Feb 2022 17:04:02 +0800</pubDate><description><![CDATA[Java系列化invalid stream header: EFBFBDEF问题解决，使用ISO8859-1方案。]]></description><category></category></item><item><title><![CDATA[2022精选博客书签]]></title><link>https://blog.csdn.net/afunx/article/details/122774574</link><guid>https://blog.csdn.net/afunx/article/details/122774574</guid><author>afunx</author><pubDate>Thu, 03 Feb 2022 11:00:14 +0800</pubDate><description><![CDATA[每年记录一下android问题解决使用的博客以及一些优秀博客。]]></description><category></category></item><item><title><![CDATA[Android故事会：事件传递机制]]></title><link>https://blog.csdn.net/afunx/article/details/121734568</link><guid>https://blog.csdn.net/afunx/article/details/121734568</guid><author>afunx</author><pubDate>Sun, 05 Dec 2021 22:35:22 +0800</pubDate><description><![CDATA[以小故事形式，把初学者入门Android的事件传递机制。]]></description><category></category></item><item><title><![CDATA[如何通过pk8和pem生成jks]]></title><link>https://blog.csdn.net/afunx/article/details/119385022</link><guid>https://blog.csdn.net/afunx/article/details/119385022</guid><author>afunx</author><pubDate>Wed, 04 Aug 2021 15:24:20 +0800</pubDate><description><![CDATA[下载keytool-importkeypair
keytool-importkeypair -k platform.pk12 -p android -pk8 platform.pk8 -cert platform.x509.pem -alias platform
（通过platform.pk8和platform.x509.pem生成platform.pk12。其中，密码为android，别名为platform)
keytool -v -importkeystore -srckeystore platfor.]]></description><category></category></item><item><title><![CDATA[Hello JNI：基于MinGW的Windows10系统JNI调用]]></title><link>https://blog.csdn.net/afunx/article/details/117618921</link><guid>https://blog.csdn.net/afunx/article/details/117618921</guid><author>afunx</author><pubDate>Sat, 12 Jun 2021 11:52:24 +0800</pubDate><description><![CDATA[操作系统：Windows10
准备工作：

安装并配置JDK环境[1]
安装并配置MinGW环境[2]
安装Windows Terminal

实践步骤：

编写Java代码
考虑到实际项目中，都是在项目文件夹内。所以，示例也写在某个项目中。
示例项目所在路径为：D:\Code\Java\afunx\HelloJNI
示例项目中java文件路径为：D:\Code\Java\afunx\HelloJNI\src\com\afunx\demo\jni\HelloJNI.java
具体java代码如下：

pac]]></description><category></category></item><item><title><![CDATA[MeasureSpec源码分析]]></title><link>https://blog.csdn.net/afunx/article/details/113481248</link><guid>https://blog.csdn.net/afunx/article/details/113481248</guid><author>afunx</author><pubDate>Sun, 31 Jan 2021 21:24:37 +0800</pubDate><description><![CDATA[MeasureSpec源码分析
  MeasureSpec是View.java中的静态内部类。
  以下源码来自于Android 27（Android 8.1 Oreo）
   /**
     * A MeasureSpec encapsulates the layout requirements passed from parent to child.
     * Each MeasureSpec represents a requirement for either the width or the]]></description><category></category></item><item><title><![CDATA[2021精选博客书签]]></title><link>https://blog.csdn.net/afunx/article/details/113279865</link><guid>https://blog.csdn.net/afunx/article/details/113279865</guid><author>afunx</author><pubDate>Wed, 27 Jan 2021 22:45:59 +0800</pubDate><description><![CDATA[KMP算法详解-实现
作者以浅显易懂地方式，剖析了KMP算法的本质，并给出了一个实现


]]></description><category></category></item><item><title><![CDATA[Markkdown编辑使用笔记]]></title><link>https://blog.csdn.net/afunx/article/details/112752951</link><guid>https://blog.csdn.net/afunx/article/details/112752951</guid><author>afunx</author><pubDate>Sun, 17 Jan 2021 17:07:55 +0800</pubDate><description><![CDATA[自定义目录标题：
这是一个自定义目录标题


标题：（最多只有六级标题）
#      一级标题
##     二级标题
###    三级标题
####   四级标题
#####  五级标题
###### 六级标题


首行缩进[1]
半方大的空白 或 
全方大的空白 或 
不断行的空白格&nbsp;或&nbsp;


上下角标
上角标：&lt;sup&gt; 上角标内容
下角标：&lt;sup&gt; 下角标内容


代码片段
同行代码片段: ```同行码片段```
换行代码片段(java也可以换成..]]></description><category></category></item><item><title><![CDATA[getChildMeasureSpec()源码分析]]></title><link>https://blog.csdn.net/afunx/article/details/112727808</link><guid>https://blog.csdn.net/afunx/article/details/112727808</guid><author>afunx</author><pubDate>Sun, 17 Jan 2021 16:53:32 +0800</pubDate><description><![CDATA[getChildMeasureSpec()源码分析
  getChildMeasureSpec()方法是ViewGroup.java中的关键代码。所有的ViewGroup在测量child view时，最终都会调用到该方法。
  以下源码来自于Android 27（Android 8.1 Oreo）
    /**
     * Does the hard part of measureChildren: figuring out the MeasureSpec to
     * pass to a par]]></description><category></category></item><item><title><![CDATA[解决华为InputMethodManager mLastSrvView内存泄漏问题]]></title><link>https://blog.csdn.net/afunx/article/details/100905268</link><guid>https://blog.csdn.net/afunx/article/details/100905268</guid><author>afunx</author><pubDate>Mon, 16 Sep 2019 23:05:54 +0800</pubDate><description><![CDATA[参考了博客：

https://www.jianshu.com/p/95242060320f

但实现与其不同，具体实现代码如下：


import android.content.Context;
import android.support.annotation.NonNull;
import android.view.inputmethod.InputMethodManager;

impo...]]></description><category></category></item><item><title><![CDATA[Android Shader着色器浅析]]></title><link>https://blog.csdn.net/afunx/article/details/88412763</link><guid>https://blog.csdn.net/afunx/article/details/88412763</guid><author>afunx</author><pubDate>Tue, 12 Mar 2019 00:28:12 +0800</pubDate><description><![CDATA[Shader着色器是计算机图形学中的概念。在Android开发中，Shader的主要用法是：


paint.setShader(shader);
canvas.drawXxx(xx, xx, xx, xx, paint);

shader就是着色器。paint就是涂料的意思。canvas是画布的意思。

通俗地说，shader就像是钢笔，paint就像是钢笔内的墨水，canvas就像是书写的纸张...]]></description><category></category></item><item><title><![CDATA[Android动画之Interpolator]]></title><link>https://blog.csdn.net/afunx/article/details/88383255</link><guid>https://blog.csdn.net/afunx/article/details/88383255</guid><author>afunx</author><pubDate>Sun, 10 Mar 2019 21:12:37 +0800</pubDate><description><![CDATA[Android源码中，有两个Interpolator。一个是frameworks/base/graphics/java/android/graphics/Interpolator.java。另一个是
frameworks/base/core/java/android/view/animation/Interpolator.java。今天想要聊的是后者。

frameworks/base/core/...]]></description><category></category></item><item><title><![CDATA[android Scroller浅析]]></title><link>https://blog.csdn.net/afunx/article/details/88373059</link><guid>https://blog.csdn.net/afunx/article/details/88373059</guid><author>afunx</author><pubDate>Sun, 10 Mar 2019 00:11:13 +0800</pubDate><description><![CDATA[Scroller主要用在View的弹性滑动上。

Scroller用法主要分为下面三步：

1.


Scroller scroller = new Scroller(mContext);

2.


/**
 * @param startX        起始坐标x
 * @param startY        起始坐标y
 * @param dx            x坐标的变化量，如果...]]></description><category></category></item><item><title><![CDATA[View的setWillNotDraw()方法]]></title><link>https://blog.csdn.net/afunx/article/details/88360566</link><guid>https://blog.csdn.net/afunx/article/details/88360566</guid><author>afunx</author><pubDate>Fri, 08 Mar 2019 23:45:05 +0800</pubDate><description><![CDATA[View中有一个setWillNotDraw()方法，代码如下：


public void setWillNotDraw(boolean willNotDraw) {
    setFlags(willNotDraw ? WILL_NOT_DRAW : 0, DRAW_MASK);
}

View中，对于WILL_NOT_DRAW是这样定义的：


/**
 * This view won't ...]]></description><category></category></item><item><title><![CDATA[理解MeasureSpec]]></title><link>https://blog.csdn.net/afunx/article/details/88324697</link><guid>https://blog.csdn.net/afunx/article/details/88324697</guid><author>afunx</author><pubDate>Fri, 08 Mar 2019 00:33:34 +0800</pubDate><description><![CDATA[MeasureSpec是View.java中的一个静态类：


public static class MeasureSpec {
    private static final int MODE_SHIFT = 30;
    private static final int MODE_MASK  = 0x3 &amp;lt;&amp;lt; MODE_SHIFT;
    // 父容器对子View没有任何限...]]></description><category></category></item></channel></rss>