jmonkey engine create and build andoid project
Create project
1. go to https://jmonkeyengine.org/start/
2. enter project name check ckeckbox andoid and download project
3. extract archive
4. open terminal
5. cd path_to_project
6. sudo nano local properties
enter sdk.dir=/home/ivan/Android/Sdk
save
Singn application
1. run in termianl
2. keytool -genkey -v -keystore my-release-key.keystore -alias my-key-alias -keyalg RSA -keysize 2048 -validity 10000
3. Place my-release-key.keystore which you generated in Step 1 under project/app
4. Update your gradle.properties
under project
and add the following
MYAPP_RELEASE_STORE_FILE=my-release-key.keystore
MYAPP_RELEASE_KEY_ALIAS=my-key-alias
MYAPP_RELEASE_STORE_PASSWORD=<The password you choose earlier with the keytool>
MYAPP_RELEASE_KEY_PASSWORD=<The password you choose earlier with the keytool>
5. Finally you need to update your project/app/build.gradle
.
android {
...
defaultConfig { ... }
signingConfigs {
release {
if (project.hasProperty('MYAPP_RELEASE_STORE_FILE')) {
storeFile file(MYAPP_RELEASE_STORE_FILE)
storePassword MYAPP_RELEASE_STORE_PASSWORD
keyAlias MYAPP_RELEASE_KEY_ALIAS
keyPassword MYAPP_RELEASE_KEY_PASSWORD
}
}
}
buildTypes {
release {
...
signingConfig signingConfigs.release
}
}
}
Change android min version
Open build.gradle and set minSdk to 22
defaultConfig {
applicationId "wwparis.WWParis"
minSdk 22
targetSdk 32
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
Build and run project
1. Open jmonkey engine
2. Press file -> open project and select your project in in sub projects select app and double click
3. Press right click on project and click clean and build
5. open new terminal and write
cd project/app/build/outputs/apk/release
Комментарии
Отправить комментарий