Game Maker: Studio Android Not Compiling - android

So I'm using GameMaker Studio Pro: 1.4.1657. I've installed all necessary SDKs, NDKs and other permissions. However, I cannot create and executable(.apk) for android.
Here is what the console says:
BUILD FAILED
C:\Android\tools\ant\build.xml:649: The following error occurred while executing this line:
C:\Android\tools\ant\build.xml:694: null returned: 1
Total time: 15 seconds
I've tried this solution: link Which didn't work.
Thanks! I would've posted this in the yoyogames forums, but I can't post! Thanks very much!

Related

NativeScript Build - Error executing Static Binding Generator: Class not found android.support.v4.view.ViewPager.OnPageChangeListener

I'm new to NativeScript and took over a project recently upgraded from NativeScript 4 to 6. Here is my environment detials:
Windows 10
Node v16.6.1
NativeScript 8.0.2
Android Studio 11 (with al
the recommended updates to date)
VS Code 1.58.2
I can create a new Native script project with "tns create" and build/run it in the simulator just fine. However, when I try to run the project the build throws the following error:
java.lang.RuntimeException: Class not found android.support.v4.view.ViewPager.OnPageChangeListener
at org.nativescript.staticbindinggenerator.Generator.getClass(Generator.java:551)
at org.nativescript.staticbindinggenerator.Generator.getInterfacesFromCache(Generator.java:534)
at org.nativescript.staticbindinggenerator.Generator.writeBinding(Generator.java:283)
at org.nativescript.staticbindinggenerator.Generator.generateBinding(Generator.java:171)
at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:234)
at org.nativescript.staticbindinggenerator.Generator.generateBindings(Generator.java:121)
at org.nativescript.staticbindinggenerator.Generator.writeBindings(Generator.java:97)
at org.nativescript.staticbindinggenerator.Main.main(Main.java:55)
Here is the run command I'm using: "tns run android --emulator"
I have tried tons of things and searches but no luck resolving this issue.
So I had an idea and searched with a different search engine than I normally use. I did find some ideas which helped me resolved the issue.
I had previously searched in VSCode for variations on "android.support.v4.view.ViewPager.OnPageChangeListener", but only found the log file with the error. Then I learned you have to change the filter options of the find in file search otherwise the files you are looking for can be excluded from the search results. I also used Baregrep to confirm I was getting everything.
I fixed the issue by replacing all occurrences of:
android.support.v4.view.ViewPager with androidx.viewpager.widget.ViewPager
Also you may need to install widgets:npm i tns-core-modules-widgets
Since the files where I made the changes were all non-project files (many of them in the node_modules directory) there is probably something else that involves updating Node or NativeScript that may solve this as well.
If someone else figures that out, I'll be watching this thread for updates, and thanks in advance!
Fissh

Where can I check Ionic's compiler error output?

I'm using Ionic and this is the message:
BUILD FAILED C:\adt\sdk\tools\ant\build.xml:720: The following error
occurred while executing this line:
C:\adt\sdk\tools\ant\build.xml:734: Compile failed; see the compiler
error output for details.
Total time: 5 seconds
C:\wamp\www\external\projectx\dirx\platforms\android\cordova\node_modules\q\q.js:126
Where can I see the log details? I've tried googling a bunch of things like "ionic log path" etc but nothing comes up. I saw something else that said run it with a -c argument but the output is the same.
Make sure you update your sdk, sometimes error occur when trying to build android incompatible API to your cordova version or ionic.

Unable to find libPluginProtocol.jar while integrating Facebook plugin with Cocos2d-x android on windows

I am trying to integrate facebook using Plugin-x in cocos2d-x v3.5. I followed the following steps:
cd to MyProject/cocos2d/plugin/tools/
./publish.sh - on cygwin all the plugins get published one by one, for eg consider this Flurry trace
atarget dir is /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/publish/plugins/flurry
android project dir is /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android
Publish plugin for android
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android ~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools ~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
BUILD SUCCESSFUL
Total time: 0 seconds
BUILD FAILED
/Users/Shivam/Documents/Gautam/android-sdk-macosx/tools/ant/build.xml:542: Unable to resolve project target 'android-7'
Total time: 0 seconds
cp: /Users/Shivam/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/plugins/flurry/proj.android/bin/*.jar: No such file or directory
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
~/Documents/Gautam/FinalWorkingApp/cocos2d/plugin/tools
All the plugins get published in the similar manner. I don't have android API 7, because of which it is failing, so can this be the reason my libpluginProtocol.jar is not getting generated?
I see a proper structure under under MyProject/cocos2d/plugin/publish/plugins
I also used gameDevGuide.sh and selected facebook.
Still I don't see libPluginProtocol.jar and libPluginFacebook.jar.
Please help. TIA
Ok so I found the answer. the library gets generated only when you have all the Android APIs viz, 7,8,10,17 and 19 apart from your own target APIs

Phonegap - build for android -> Class not found: javac1.8

I have been trying for 2 days to sort out this problem I am having with phonegap/cordova.
Working on a mac, I can build for iOS. But everytime I try to build for android, I get this error:
BUILD FAILED
/Users/m/Documents/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:601: The following error occurred while executing this line:
/Users/m/Documents/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:720: The following error occurred while executing this line:
/Users/m/Documents/adt-bundle-mac-x86_64-20131030/sdk/tools/ant/build.xml:734: Class not found: javac1.8
Any help would be great!! No online resources has helped!
Do you have java sdk/JDK installed in your mac? you may try javac -version in your terminal and check the results.
you can also refer to http://docs.oracle.com/javase/8/docs/technotes/guides/install/mac_jdk.html
Easy to solve, look at error message:
.../sdk/tools/ant/build.xml:734: Class not found: javac1.8
So open this file, on line 734, and you find fork="${need.javac.fork}"> . What's need.javac.fork? I don't know, but let's search this in document and we got this on line 199:
<condition else="false" property="need.javac.fork">
<and>
<matches pattern="1\.[56]" string="${java.specification.version}"/>
<not>
<os family="unix"/>
</not>
</and>
</condition>
Whoa, pattern="1\.[56]" ?? It looks like this pattern is about Java 1.5 and 1.6, what If I change this to pattern="1\.[8]" ? Now it will build and works like a charm!!!
Some people said this is related because the ant version is old and doesn't support Java 8..or you need to install Java 1.6.. and yes doing this works too, but we programmers need to read error messages and be at least a little bit curious to understand and try to solve too, I spent a minute or two to find and solve this problem... just by reading the error message!

Havok Vision Game Engine: Compiling Autodesk Scaleform For Android in Visual Studio

I've followed the instructions in the tutorial on Scaleform
http://www.projectanarchy.com/introduction-scaleform
On windows it all worked fine, but now I am trying to compile it for Android in Visual Studio 2010 and I get all these errors:
Error 1 error MSB6006: "C:\Android\NDK\android-ndk-r9d\toolchains\arm-linux-androideabi-4.6\prebuilt\windows\bin\arm-linux-androideabi-g++.exe" exited with code 1. C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\Platforms\hkAndroid\Microsoft.Cpp.hkAndroid.Targets 66 6 CounterUIApplication
and errors like this:
8 IntelliSense: cannot open source file "Vision/Runtime/EnginePlugins/ThirdParty/ScaleformEnginePlugin/VScaleformVariable.hpp" c:\game engineering projects\scaleformtry\scaleformcounterui\counterui\source\counteruiapplication\main.cpp 18 1 CounterUIApplication
and like this:
31 IntelliSense: identifier "VISION_PLUGIN_ENSURE_LOADED" is undefined c:\game engineering projects\scaleformtry\scaleformcounterui\counterui\source\counteruiapplication\main.cpp 99 3 CounterUIApplication
It seems that Visual Studio does not load the scaleform header files in the Android solution.
How do I fix it?
(Note: I've checked the Scaleform toggle box in the vGameSolutionCreator of the Vision Engine)
Thanks.
(I've asked this question already on Havok PA website but got no answer for a long time)
I've found the answer.
After sitting in front of my computer for 8 hours I've found that the problem was caused by the Windows specific line in my source code (hkvLog::FatalError is not supported on Android):
if(m_spMovie==NULL)
{
hkvLog::FatalError("Could not load movie: %s", m_sMovieName);
}
After I removed this line the program compiled with no problem and the apk was created.

Categories

Resources