BuglyDevTeam / Bugly-Android-Demo

Bugly Android SDK 使用例子
Apache License 2.0
811 stars 307 forks source link

官方例子BuglyHotfixDemo执行gradlew build报错 #349

Closed huhuang03 closed 2 years ago

huhuang03 commented 2 years ago
Request to incrementing alive workforce from 0. Current workforce (dead or alive) 0
thread-pool size=4

Preverifying...
Unexpected error while performing partial evaluation:
  Class       = [com/tencent/bugly/beta/global/b]
  Method      = [onClick(Landroid/view/View;)V]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [com/tencent/bugly/beta/global/b] (with 2 known super classes) and [com/tencent/bugly/beta/ui/l] (with 3 known super classes))
Unexpected error while preverifying:
  Class       = [com/tencent/bugly/beta/global/b]
  Method      = [onClick(Landroid/view/View;)V]
  Exception   = [java.lang.IllegalArgumentException] (Can't find common super class of [com/tencent/bugly/beta/global/b] (with 2 known super classes) and [com/tencent/bugly/beta/ui/l] (with 3 known super classes))
Warning: Exception while processing task java.io.IOException: java.lang.IllegalArgumentException: Can't find common super class of [com/tencent/bugly/beta/global/b] (with 2 known super classes) and [com/tencent/bugly/beta/ui/l] (with 3 known super classes)
Thread(Tasks limiter_1): destruction

FAILURE: Build failed with an exception.

我下下来没有动,然后只执行./gradlew build。先是报错:NDK没有配置。然后我设置了ndk.location:

ndk.dir=E\:\\sdks\\Android\\sdk\\ndk\\18.1.5063045

接下来就报上面的错了。

huhuang03 commented 2 years ago

在proguard文件里面增加

-dontpreverify

能解决这个问题,但是我不太明白添加了这个是否有什么后续影响