GithubHelp home page GithubHelp logo

Comments (10)

seiginonakama avatar seiginonakama commented on September 14, 2024

IPackageStatsObserver这个类实际上是隐藏的吧?代码里有用到这个类么?怎么使用这个类的?

from blockcanaryex.

seiginonakama avatar seiginonakama commented on September 14, 2024

另外希望给出一些详细的信息,比如compile sdk version,com.android.tools.build:gradle version等

from blockcanaryex.

tonycheng93 avatar tonycheng93 commented on September 14, 2024

确实有方法调用了IPackageStatsObserver,但是这个方法没有被调用,然后我把它注释了,但是现在出现了另外一个问题:

Error:Execution failed for task ':SkyMoviePlatform5.5:transformClassesWithBlockCanaryExFor_defaultDebug'.
> javassist.CannotCompileException: cannot find android.content.res.ConstantState

android.content.res.ConstantState位于layoutlib.jar,我设置的是不开启本地libs方法采样。
项目的一些信息如下:
gradle:2.2.2
buildTools:23.0.3
compile sdk:23

from blockcanaryex.

seiginonakama avatar seiginonakama commented on September 14, 2024

这个也是android的隐藏类,你是通过provide jar包的方式来访问这些android隐藏类吧?我一会也这样试试。

from blockcanaryex.

tonycheng93 avatar tonycheng93 commented on September 14, 2024

嗯嗯,对,是通过provide的方式访问的,如果我把subProject true //开启子项目代码方法采样,默认为true置为false就不会有问题,但是我现在希望的是开启子项目代码采样

from blockcanaryex.

seiginonakama avatar seiginonakama commented on September 14, 2024

@tonycheng93 问题出在javaassit的classpath 没有引入provide的jar路径,0.9.8.3已经解决了,你试试。

from blockcanaryex.

tonycheng93 avatar tonycheng93 commented on September 14, 2024

@seiginonakama 非常感谢作者,0.9.8.2版本可以正常使用,最近刚好在做性能优化方面的工作,看到作者的这个库很有帮助,十分感谢!

from blockcanaryex.

seiginonakama avatar seiginonakama commented on September 14, 2024

@tonycheng93 不客气,谢谢你的issue,我以前还没注意到这个。其实0.9.8.3才是完美解决,0.9.8.2不能兼容library工程里的provide依赖。。

from blockcanaryex.

tonycheng93 avatar tonycheng93 commented on September 14, 2024

@seiginonakama 我的library里面没有provide依赖,所以更新了你的0.9.8.2就可以解决我的问题了

from blockcanaryex.

seiginonakama avatar seiginonakama commented on September 14, 2024

resolved in 0.9.9

from blockcanaryex.

Related Issues (20)

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.