alibaba / alibaba/freeline

FreeLine编译后找不到类

Open
#889 3 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
5.4k
Forks
620
PR merge metrics
No merged PRs in 30d

Description

Activity 跳转方式如下:
Intent intent = new Intent();
intent.setClassName(getActivity(), "com.lenovo.router.activity.RouterActivity");
startActivity(intent);
报错如下:
09-20 10:26:49.802 7825-7825/com.lenovo.octopus E/AndroidRuntime: FATAL EXCEPTION: main
Process: com.lenovo.octopus, PID: 7825
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.lenovo.octopus/com.lenovo.router.activity.RouterActivity}: java.lang.ClassNotFoundException: Didn't find class "com.lenovo.router.activity.RouterActivity" on path: DexPathList[[dex file "/data/user/0/com.lenovo.octopus/cache/hack/hackload.dex", zip file "/data/app/com.lenovo.octopus-2/base.apk"],nativeLibraryDirectories=[/data/app/com.lenovo.octopus-2/lib/arm, /system/fake-libs, /data/app/com.lenovo.octopus-2/base.apk!/lib/armeabi-v7a, /system/lib, /vendor/lib, /system/vendor/lib, /product/lib]]

正常编译情况正常.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the reported Activity launch with FreeLine and compare it with a normal build. Inspect the ClassNotFoundException for com.lenovo.router.activity.RouterActivity and the listed dex paths to determine why the compiled class is absent. Done means the same Intent launch works after a FreeLine build.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, java
Domain
build-system, mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.