Skip to content
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

您好,请教一下,还是关于Activity被混淆的问题 #68

Open
ljqiang opened this issue May 30, 2024 · 0 comments
Open

您好,请教一下,还是关于Activity被混淆的问题 #68

ljqiang opened this issue May 30, 2024 · 0 comments

Comments

@ljqiang
Copy link

ljqiang commented May 30, 2024

您好,根据您之前的指导,将Activity单独放到一个"main"的包里面,这个{applicationId}.main包下里面仅有这一个Activity类,并且在manifest里也做了如下配置,但是该Activity还是会被混淆,混淆之后,类名改了,但是manifest里还是"${applicationId}.main.MainActivity",所以就会报找不到类错误,请问可能是什么原因啊,非常感谢

<activity
        android:name="${applicationId}.main.MainActivity"
        android:label="@string/app_name"
        android:theme="@android:style/Theme.Translucent.NoTitleBar"
        android:exported="true"
        android:taskAffinity="com.xxx.xxx"
        android:launchMode="singleTask">
</activity>

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant