Exporting cocos2d Android application as aar and calling its Activity from another project
问题 I had built a cocos2d Android project from cocos creator. (sample application) And I exported this android application as an android library (sample.aar) I created another Android application (MyDemo) and imported the android library (sample.aar) I am calling the AppActivity of (sample.aar) library from the MainActivity of (MyDemo) application on Button click aarButton.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { Intent intent = new Intent(); intent