【美妍機房】設置環境參數-各種錯誤問題

已安裝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)


已安裝cordova,顯示10.0.0 (cordova-lib@10.1.0)

已安裝gradle,Gradle 2.0

已安裝node.js


 

Problem1

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.

Solution 1

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 :)


Problem2

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.

Solution 2

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.

你是否有安裝並設置android studio?在大部分情況下只是單獨安裝並不足夠,你必須打開它。嘗試創建一個項目,由此他能設置你的環境。再那之後建立並跑程序


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:

設置安卓建立環境是複雜的,有時候也是令人失望的,那是因為這很複雜,而且要涉及到多種不同的工具。但是既然你在用mac os,你有沒有確認環境標籤的,



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.

你不得不把路徑和sdk 工具設置

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).

其他的RPG遊戲等,輸出android的方法是一樣的


problem3 (2018/4)

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.

我安裝了homebrew和gradle解決了一半的問題。

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).



problem4 如何添加廣告

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.

添加admob廣告的鏈接


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。

Java SE Development Kit 8 Downloads. Sorry for the confusion about version numbers. Here is better explained JDK 8 Naming.

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.


PROBLEM 5

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.

最新文章

查看全部

problem4 如何添加廣告 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 exa

bedroom-ppng.png

情節驚心動魄,情感深厚真摯,情慾熾烈狂熱的琴研單行本!僅限18歲以上讀者哦!以下為情慾濃烈的甜愛單行本

tea-cover.jpg
18+
cover-piao.jpg
18+
electricity_01.jpg
18+