mac电脑修改gradle出现Malformeduxxxxencoding
简书链接:mac电脑修改gradle出现Malformeduxxxxencoding文章字数:26,阅读全文大约需要1分钟 123Malformed \uxxxx encoding.Open File 写的代码是 12345{ Properties properties = new Properties() properties.load(project.rootProject.file(System.getenv("qssqsignfile")).newDataInputStream()) def 把\改成/或者改成\\。window电脑是没毛病的。不需要改
mac笔记本androidstudio使用java函数无法获取环境变量的解决方法
简书链接:mac笔记本androidstudio使用java函数无法获取环境变量的解决方法文章字数:563,阅读全文大约需要2分钟 12println "signfile:"+System.getenv("PS1") properties.load(project.rootProject.file(System.getenv("qssqsignfile")).newDataInputStream()) 发现无论是系统的还是 用户目录下的环境变量~/.bash_profile的都获取为null,下面https://blog.csdn.net/zhzdeng/article/details/64921967 curl https://raw.githubusercontent.com/ersiner/osx-env-sync/master/osx-env-sync-now -o...
多个dex合并遇到的问题
简书链接:多个dex合并遇到的问题文章字数:701,阅读全文大约需要2分钟 合并使用到的技术12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273 /** * * @param mainclassLoader 合并到这里 * @param pluginClassloader 被合并的dex */ public static void mergeDex(ClassLoader mainclassLoader,ClassLoader pluginClassloader){ /* String cachePath = context.getCacheDir().getAbsolutePath(); String apkPath =...
mac终端输入git命令提示xcrunerrorinvalidactivedeveloperpath
简书链接:mac终端输入git命令提示xcrunerrorinvalidactivedeveloperpath文章字数:23,阅读全文大约需要1分钟 12xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun 解决办法 1xcode-select --install 安装相关插件,可能时间比较久,建议充电。
fragment的findbyid代码写在哪里比较合适?
简书链接:fragment的findbyid代码写在哪里比较合适?文章字数:89,阅读全文大约需要1分钟 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152public class DFPFluidSizeFragment extends Fragment { private PublisherAdView publisherAdView; private Button changeAdViewWidthButton; private TextView currentWidthTextView; private final int[] adViewWidths = new int[]{200, 250, 320}; private int currentIndex = 0; public DFPFluidSizeFragment() { } ...
有人说fragmentreplace会影响生命周期?那么谷歌是如何用的呢?那么replace真的不规范吗?
简书链接:有人说fragmentreplace会影响生命周期?那么谷歌是如何用的呢?那么replace真的不规范吗?文章字数:348,阅读全文大约需要1分钟 1234567891011121314151617FragmentManager fragmentManager = getSupportFragmentManager(); FragmentTransaction trans = fragmentManager.beginTransaction(); switch (position) { case 0: trans.replace(R.id.container, new AdMobAdListenerFragment()); break; case 1: trans.replace(R.id.container, new AdMobAdTargetingFragment()); break; case 2: trans.replace(R.id.container, new...
becauseFailuretoverifydexfile
简书链接:becauseFailuretoverifydexfile文章字数:76,阅读全文大约需要1分钟 12345E/System: java.io.IOException: Failed to open dex files from /data/user/0/cn.qssq666.pluginload/app_robot_out_dex/classes.dex because: Failure to verify dex file '/data/user/0/cn.qssq666.pluginload/app_robot_out_dex/classes.dex': Bad file size (1024, expected 940d) at dalvik.system.DexFile.openDexFileNative(Native Method) at dalvik.system.DexFile.openDexFile(DexFile.java:373) at...
部分demo应用在小米手机应用列表中看不到
简书链接:部分demo应用在小米手机应用列表中看不到文章字数:185,阅读全文大约需要1分钟请求权限也不会有任何弹窗,我特么快疯了,这是手机垃圾还是手机垃圾?真怀疑人生。。 不管卸载多少遍,都没法给他授权,也没法在应用列表中找到。 12345678910111213141516int i = ContextCompat.checkSelfPermission(this, Manifest.permission.WRITE_EXTERNAL_STORAGE); if (i == PackageManager.PERMISSION_DENIED) { if (ActivityCompat.shouldShowRequestPermissionRationale(this, Manifest.permission.WRITE_EXTERNAL_STORAGE)) { Toast.makeText(this, "需要存储权限啊!", Toast.LENGTH_SHORT).show(); ...
即时运行app的逆向分析以及原理浅析以及谈谈xposed免重启更新是否能够兼容即时运行的可行性
简书链接:即时运行app的逆向分析以及原理浅析以及谈谈xposed免重启更新是否能够兼容即时运行的可行性文章字数:888,阅读全文大约需要3分钟首先即时运行app的即时更新是通过内容提供者的启动而更新的,通过分析源码发现并没有修改的是application节点,也就是说合application multidex的方式不同。 12<provider android:name="com.android.tools.ir.server.InstantRunContentProvider" android:multiprocess="true" android:authorities="cn.qssq666.radiogroupdemo.com.android.tools.ir.server.InstantRunContentProvider" /> 123456789101112131415161718192021222324252627282930313233343536public final class...
官方加载多个dex的核心代码
简书链接:官方加载多个dex的核心代码文章字数:40,阅读全文大约需要1分钟 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556private static List<MultiDexExtractor.ExtractedDex> performExtractions(File sourceApk, File dexDir) throws IOException { String extractedFilePrefix = sourceApk.getName() + ".classes"; prepareDexDir(dexDir, extractedFilePrefix); List<MultiDexExtractor.ExtractedDex> files = new ArrayList(); ZipFile apk = new...