无法在安卓中安装ByteBuddyAgent
build.gradle中的代码
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:23.1.1'
compile 'net.bytebuddy:byte-buddy:1.4.18'
compile 'net.bytebuddy:byte-buddy-android:1.4.18'
compile 'net.bytebuddy:byte-buddy-agent:1.4.18'安装ByteBuddyAgent的代码
ByteBuddyAgent.install();这是编译错误,因为java.lang没有工具和管理包。
Error:(31, 35) error: cannot access Instrumentation
class file for java.lang.instrument.Instrumentation not found发布于 2016-08-14 15:29:58
Android只支持官方Java API的一个子集。Android不支持该工具API,这导致无法安装代理。有关此限制,请参阅文档。
https://stackoverflow.com/questions/38934437
复制相似问题