If you don't know, please click here : CmonBaby
File sourceFile = new File(Environment.getExternalStorageDirectory(), Constants.DEX_NAME);
File targetFile = new File(getDir(Constants.DEX_DIR, Context.MODE_PRIVATE).getAbsolutePath()
+ File.separator + Constants.DEX_NAME);
FileUitls.copyFile(sourceFile, targetFile);
FixDexUtils.loadFixedDex(this);
Via Gradle:
implementation 'com.cmonbaby:hotfix:1.0.0'
Via Maven:
<dependency>
<groupId>com.cmonbaby</groupId>
<artifactId>hotfix</artifactId>
<version>1.0.0</version>
</dependency>
Copyright (C) 2013-2020 Markus Junginger, Simon (https://www.cmonbaby.com) Hotfix binaries and source code can be used according to the Apache License, Version 2.0.