Giter Club home page Giter Club logo

sdkhotfix's Issues

execute command java -jar robust\dx.jar --dex --output=classes.dex meituan.jar error

打补丁时,assembleRelease Gradle 遇到一个问题

  • What went wrong:
    Execution failed for task ':hotfixSDK:transformClassesWithAutoPatchTransformForRelease'.

execute command java -jar E:\Android Project\RewardLotteryApp\hotfixSDK\robust\dx.jar --dex --output=classes.dex meituan.jar error

classpath "com.android.tools.build:gradle:3.0.1"
gradle-4.4-all

运行 assembleRelease Gradle 异常

FAILURE: Build failed with an exception.

  • What went wrong:
    Execution failed for task ':rewardsdk:packageRelease'.

No signature of method: org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection.get() is applicable for argument types: () values: []
Possible solutions: grep(), getAt(java.lang.String), getAt(int), grep(java.lang.Object), wait(), max()

环境:
classpath 'com.android.tools.build:gradle:4.0.1'
gradle-6.1.1-all

1.12版本引用失败

1.12版本引用失败
implementation 'com.github.feelschaotic:SDKHotFix:1.10-RELEASE',引用就正常,

改为
implementation 'com.github.feelschaotic:SDKHotFix:1.12-RELEASE',就会失败,大佬快看下什么原因吧!

在吗

能加我一下qq吗 372797035 有问题请教一下

混淆这里是怎么处理的呢?

SDK要求发给客户的是混淆包. 每次编译都有可能不同 , 有没有对于这块的处理能分享下 ? 也就是宿主v1.0 中的 Config.class 发包的时候可能是 A.class , 那么热修包中的 应该是A.class 还是 Config.class 还是说没有影响无所谓?

Sorry 还没来得及好好看代码?希望解惑 (* ̄︶ ̄)

build时执行transformClassesWithRobustForRelease失败, java.io.IOException: invalid constant type: 19 at 5

异常类型:编译异常

Robust版本:如:0.4.87.5

Gradle版本:如:3.2.0

系统:如:mac

堆栈/日志:

Task :middleware:transformClassesWithRobustForRelease
================robust start================
read all class file cost 0.4 second

Task :middleware:transformClassesWithRobustForRelease FAILED

FAILURE: Build failed with an exception.

What went wrong:
Execution failed for task ':middleware:transformClassesWithRobustForRelease'.
java.io.IOException: invalid constant type: 19 at 5

Java 混编 Kotlin 如何初始化SDK

private void initSdk() {
        HotfixConfig config = new HotfixConfig.Builder()
                .debug(true)
                .appVersion(BuildConfig.VERSION_NAME)
                .packageName(BuildConfig.APPLICATION_ID)
                .build();

        HotfixManager hotfixManager = new HotfixManager(); // 出现警告报错信息
        hotfixManager.init(applicationRef, config);
    }

Didn't find class

小姐姐你好:
十分感谢你提供了一个方便接入Robust的方案。
在接入过程中,我遇到一些问题:

RobustCallBack提示异常: throwable=Didn't find class "com.feelschaotic.sdkhotfix.sdk.PatchManipulateImp.PatchesInfoImpl"

image
在classLoader补丁包时,没有找到相应的类,通过追踪源码,需要加载的类名如下:
image
在module sdk中并没有发现该类,是我接入的方式有问题吗,感谢提供解决方案。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.