Android build failed. error: duplicate class

Hi…!
I got an error that cannot understand.
I used this command for android-studio build.

cocos compile -p android --android-studio

and then build failed.

MyProject\proj.android-studio\app\src\org\cocos2dx\cpp\AppActivity.java:28:
error: duplicate class: org.cocos2dx.cpp.AppActivity
public class AppActivity extends Cocos2dxActivity {
       ^
1 error
:libcocos2dx:packageDebugJar FAILED
:MyProject:compileDebugJavaWithJavac <Thread[Task worker Thread 2,5,main]> completed. Took 0.461 secs.
* What went wrong:
Execution failed for task ':MyProject:compileDebugJavaWithJavac'.

I am using cocos2d-x v3.9.
Thanks for some advice.
Good day :slight_smile:

I found a solution.
AppActivity path of proj.android and proj.android-studio was different.

proj.android\AndroidManifest.xml and
proj.android-studio\app\AndroidManifest.xml
I edit AppActivity path and build successful.