已安裝android studio dolphin 海豚，選擇android版本5.1 lollipop，API 22，SDK位置：C:\Users\ginyan\AppData\Local\Android\Sdk
已安裝java 8，顯示java version "1.8.0_351"
Java(TM) SE Runtime Environment (build 1.8.0_351-b10)
Need help exporting to Android
I'm trying to do a little apk for testing in my phone and after following the steps in the help guide I can't seem to do it right. It creates the build, but when I reach the "platforms" folder I don't see a "build" one or and "output" one like the guide suggests and not a trace of the apk. If someone could guide me please it would be great.
Hi, I assume that something went wrong or is wrong configured which is nothing special due to the complexity behind that process. We also noted that in the Help File I think. The best if you open the Debug Console, you can just press F12 on Windows to make it visible. Then make your Android Build again and you will probably get some error messages there. If you post that here we can help you out I think :)
Hi, Im having exactly the same problems as OP. A lot of errors and deprecation warnings etc (differs every time I try to build an APK for Android). I had a few problems when I installed on the free weekend and then bought the product. I verified the integrity of the software and found 2 errors which seem to have solved a few minor glitches. I would be happy to post the Debug console errors if it would help. Thank you in advance for any help you can offer!
Just to mention I followed the 'for Android' guide and have also installed GIT, but it's made no difference so far.
Hi, did you install & configure Android Studio? Installation alone is not enough in most cases, you have to open it, try to create a project so that it configures your environment. After that the build should run. Let me know if that helps you out.
Hi, settings up an Android Build Environment can be complicated and frustrating sometimes due to the complexity and several different tools which are involved. However, since you are using Mac OS X(?) did you check the Environment tab in Visual Novel Maker > Preferences > Application:
You have to set those variables. Please replace "<user-name>" with your actual home-directory name. You have to put the path to the sdk tools and re-configure PATH there too.
Otherwise, I am not sure about your experience but you can also package the game for Android via Terminal. The VN Maker Build Front-End actually does the same, it just executes Cordova commands. You can see that in Visual Novel Maker > Preferences > Application > Build if you select Android there. Then you can see what it actually does.
我不太清楚你有沒有通過android的terminal打包apk的經驗，vn maker的前端實際上做通嚴格事情，它執行cordova 命令，你可以在Visual Novel Maker > Preferences > Application > Build看到，如果你選擇android，你就會看到
(You can also search for RPG Maker MV Android Export tutorials since the process would be the same for a VNM Game).
No, that wasn't it Kentou, I had the same exact same PATH as you showed.
I have managed to solve the issue with a bit of patience though.
I installed Homebrew and gradle (directly from the terminal) on Mac which solved half the issue. For some reason my ordinary gradle installation within Android studio wasnt being seen by the VN Maker compiler.
The other problem was then when exporting the APK game package file directly to my Android device seemed nothing happened. I tracked the apk file transfer progress and realised it was getting hung on 99%. Apparently this is a well known Android Marshmallow 6.0.1 (security level 23) bug with apps (been blissfully unaware of Android stuff because I've only developed for iOS before).
I didn't have a chance to make mobile package from VNM, but it uses Cordova to build the game on both iOS and Android. There are some Cordova plugins that add AdMob to the app, for example this one: https://github.com/floatinghotpot/cordova-admob-pro.
You have to add this as plugin when building VNM game. To do this, you have to open your project, then click Tools > Preferences > Application > Build. Then double click on your desired platform (iOS, Android), add new command line right before the "Building..." and add "cordova plugin add cordova-plugin-admobpro" to the Command Line.
After that you can follow the instruction of this: https://github.com/floatinghotpot/cordova-admob-pro#usage.
problem 5 （2017年）
Cordova won't work with JDK 9. Also, the Android tools don't work properly with JDK 9. I work with Mac OsX High Sierra, but I think is gonna be similar to Windows.
Make sure you install JDK 1.8. I have both (1.8 and 9) installed on my machine
Setup your JAVA_HOME variable for JDK 1.8.
Change the extension of the file "Info.plist" located in "/Library/Java/JavaVirtualMachines/jdk-9.0.1.jdk/Contents/" to "Info.plist.disabled".
"Only for High Sierra" In Terminal type:
sudo chmod 755 "/Applications/Android Studio.app/Contents/gradle/gradle-4.1/bin/gradle"
This didn't only solve the problem with VN Maker, but also with Unity. Hopefully, everybody will update their tools to work with Java 9.
There you'll find the JDK and JRE for 1.8 and 9. Make sure to download and install the JDK。
After installing Java and typing "java -version" it should return java version "1.8.x" where x is the latest version installed.
After installing Java, set properly the JAVA_HOME environment variable, here are the instructions from Java Oracle Help. Then follow the instructions in VN Maker for Testing and Deployment for Android. Make sure your ANDROID_HOME environment variable is set properly after installing Android Studio, the instructions are also in the following Cordova link. When installing Cordova, follow their instructions here Cordova Android Platform Guide. You should be able to build a test apk.
If everything goes well, jump into VN Maker, open the debug console, then build using Game > Build For > Android Cordova.
t looks like you have a problem in Gradle.
Did you build the hello apk and tested without problems?
Tomcat said: When installing Cordova, follow their instructions here Cordova Android Platform Guide. You should be able to build a test apk.
Try to identify the problem. Restart your machine. Build a test apk in Android Studio, is successful try with the hello test apk from Cordova. Run it on the Emulator. Then try with VN Maker. That way you'll find which tool is giving the problem.
The error in your log is this:
Error occurred during initialization of VM Could not reserve enough space for 2097152KB object heap
It looks like when starting a Gradle Daemon the VM is trying to reserve 2GB and doesn't have enough space. Try decreasing it, you'll find the info here [URL='https://docs.gradle.org/current/userguide/build_environment.html#sec:gradle_configuration_properties']Configuring the build environment via gradle.properties[/URL]. Good luck.