ProGuard Still Displays Full Activity Name

前端 未结 1 1542
萌比男神i
萌比男神i 2021-01-15 16:53

I am using Proguard and in my app I use this code

            System.out.println(\"ACTIVITY NAME IS \" + activity.getLocalClassName());

It

1条回答
  •  甜味超标
    2021-01-15 17:32

    Yes this is a normal behaviour. Activity names are never obfuscated because these are referenced in manifest.xml. and android access these activities via reflection so their names cannot be changed. check this link https://stackoverflow.com/a/20620108/1320616

    0 讨论(0)
提交回复
热议问题