-
Notifications
You must be signed in to change notification settings - Fork 4.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[gui] Smali debugger launch app error. #2292
Comments
Are you sure the MainActivity class exists in the app? Android apps don't need to have a MainActivity, e.g. apps targeting Android-TV usually have no MainActivity if they are not also targeting Android phones/tablets. Also some hidden apps don't have a MainActivity. Can you share the APK file that doesn't work? |
@jpstotz here is empty new project, jumps do not work with UPD. Just realized topic starter said it was an error about no activity. I guess it's unrelated. |
@AndreiKud Indeed Jadx seems to have a problem when you execute "Go to main Activity" when there is no tab open (no class or resource file opened). Then Do you remember if this warning was also printed when you click "Launch app"? @skylot If I remove the |
@jpstotz just in case you addressed "launch app" to me, the topic starter is @ZhanYiBai |
@jpstotz correct tab events should be: public void codeJump(JumpPosition pos) {
if (selectedTab == null || selectedTab.getNode() != pos.getNode()) {
selectTab(pos.getNode());
}
listeners.forEach(l -> l.onTabCodeJump(selectedTab, pos));
} Although, I agree, such event model is confusing, and I see that different methods are called just to "open tab". |
I commit mentioned changes, also I reviewed tab events and can't find a solution to reduce events amount because all of them are used and have their own purpose.
|
Looks like cause of the original issue is still unknown and author not provide details to help reproduce it, so I will close it. |
Issue details
When I click Launch app, it tell me , can't find Main Activity Class. Then I close it , and i click button: go to main activity, the same error occurs again. so i used previous version 1.4.7, then it works.
Jadx version
1.5.0
Java version
19.0.2
OS
The text was updated successfully, but these errors were encountered: