Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
パッケージ名を変更したいが、クラス名は変更しないでおく必要があります。何か案が?
ProGuard には、パッケージの名前を変更する標準オプションはありませんが、単純なクラス名は保持されます。
次のような行を使用して、ProGuard マッピング ファイルを手動で作成できます。
com.example.MyClass -> a.MyClass: com.example.MyOtherClass -> a.MyOtherClass:
その後、オプションを使用できます-applymapping mapping.txt
-applymapping mapping.txt