Many thanks to Said for the answer, I was able to do this, but I had to do something else to get the application working after changing the package name. I explain the steps here:
- Change the package name of the main module from
com.myname.mygame to com.myname.mygame.core - Change the package in the manifest to
package="com.myname.mygame" - Move AndroidLauncher from
com.myname.mygame.android to com.myname.mygame
The above steps solved the problem of changing the package name, many thanks to Saeed. Now the application did not start. Then I saw that the installation command was wrong. To change this, just go to the Android build.gradle application and change the following line:
commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.myname.mygame.android/com.myname.mygame.android.AndroidLauncher'
in
commandLine "$adb", 'shell', 'am', 'start', '-n', 'com.myname.mygame/com.myname.mygame.AndroidLauncher'
And you are ready to work !!!
source share