Comments (13)
Installing this package gives me this on the terminal through ADB.
adb install SilenceCommonsAndroid-release-unsigned.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
284 KB/s (1255765 bytes in 4.312s)
pkg: /data/local/tmp/SilenceCommonsAndroid-release-unsigned.apk
Failure [INSTALL_PARSE_FAILED_NO_CERTIFICATES]
This is because unsigned APKs cannot be installed on a real device. SilenceEngine apps cannot run in an emulator because of the requirement of OpenGL ES 3.0, and hence your APK cannot be installed and run.
You want to self sign your apk in order for it to get installed on a device. If it is for your own testing, use debug builds, or better use desktop backend while development and test it on android after everything is working.
from silenceengine.
Thank you for pointing out all of the earlier issues. After correcting them, I am still having the parse issue however. Using adb I get the following response.
C:\adb>adb install xor.apk
7309 KB/s (1286401 bytes in 0.171s)
pkg: /data/local/tmp/xor.apk
Failure [INSTALL_FAILED_OLDER_SDK]
Not sure if this is related to the device or the PC. The new download is here. As for testing, this application was created for the sole purpose of testing the performance of certain code on physical devices, so the desktop edition is not accurate enough.
from silenceengine.
Dunno, but it installed fine, but it failed to run.
C:\Users\Harsha\Downloads> adb install xor.apk
* daemon not running. starting it now on port 5037 *
* daemon started successfully *
289 KB/s (1286401 bytes in 4.342s)
pkg: /data/local/tmp/xor.apk
Success
from silenceengine.
I have got some logcat output for you, and it seems that you are calling SilenceEngine
methods before they are initialized.
E AndroidRuntime: FATAL EXCEPTION: GLThread 1723
E AndroidRuntime: Process: xyz.epoxide.silencecommons.android, PID: 2062
E AndroidRuntime: java.lang.ExceptionInInitializerError
E AndroidRuntime: at xyz.epoxide.silencecommons.android.SilenceCommonsLauncher.launchGame(SilenceCommonsLauncher.java:15)
E AndroidRuntime: at com.shc.silenceengine.backend.android.AndroidLauncher$$Lambda$1.invoke(Unknown Source)
E AndroidRuntime: at com.shc.silenceengine.backend.android.AndroidWindow.onSurfaceCreated(AndroidWindow.java:51)
E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.guardedRun(GLSurfaceView.java:1503)
E AndroidRuntime: at android.opengl.GLSurfaceView$GLThread.run(GLSurfaceView.java:1240)
E AndroidRuntime: Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'com.shc.silenceengine.logging.Logger com.shc.silenceengine.logging.ILogDevice.getLogger(java.lang.String)' on a null object reference
E AndroidRuntime: at xyz.epoxide.silencecommons.SilenceCommons.<clinit>(SilenceCommons.java:23)
E AndroidRuntime: ... 5 more
E AbstractTracker: Can't create handler inside thread that has not called Looper.prepare()
The device objects in the SilenceEngine
class will be null until you call the runtime, and it is that you are using the logger before the engine is initialized, that is in the launchGame
method. This is why your app is failing to launch.
from silenceengine.
After digging into things a bit further, I think I have found the source of the issue. By default Silence Engine sets the minimum SDK to 22, however Android 5.0 is SDK 21. I went through the gradle script to manually lower the minimum SDK (Since 5.0 was listed as the lowest android version required) however I got the following issue.
* What went wrong:
Execution failed for task ':SilenceCommonsAndroid:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 21 cannot be smaller than version 22 declared in library [:backend-android-debug:] C:\Users\darkh\Desktop\Workspace\SilenceCommons\SilenceCommonsAndroid\build\intermediates\exploded-aar\backend-android-debug\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.shc.silenceengine.backend.android" to force usage
from silenceengine.
Will fix that by tonight. The same thing also happens with AndroidOpenAL project which is a dependency of android backend. Will change every thing by tonight.
from silenceengine.
Okay, thank you for looking into this. I will hold off on updating to 6.0 until then, so we can confirm that the issue has been solved.
from silenceengine.
I have reduced the minimum Android SDK to 21 (Lollipop). Can you try it now again?
from silenceengine.
After re-downloading the project creator and making a new project, the sdk version was set to 22 by default. After changing it, I got the same error as before.
https://gist.github.com/darkhax/8507b7a9a680c7cf35ae6da2a0db444b
from silenceengine.
I haven't yet updated the binaries in the project creator, in the sense that the project is not a released version. Please compile it yourselves and replace the library files.
from silenceengine.
I can't compile it myself if you do not push the code to GitHub.
Edit: Thought you meant compile the project creator myself.
Edit 2: The default render tests installed and runs fine.
from silenceengine.
Did you get this working? In that case, this can be closed.
from silenceengine.
Yes, this change fixed my issues. Was able to run the test apps from silence fine.
from silenceengine.
Related Issues (20)
- Wav file playing incorrect in desktop backend HOT 1
- Use DrawElement with a IntBuffer (transformed in ByteBuffer) for Indexes of element HOT 3
- Streams support HOT 3
- AMD shouts on Pre GL3 shaders in Core profile HOT 1
- Implement model loading API HOT 1
- Re-Evaluate iOS support HOT 2
- A reasonable way to handle files loading HOT 6
- Modularity for non essential features HOT 3
- Source and Javadocs not available HOT 1
- There are any screen of the game editor? HOT 2
- Add error callbacks to all asynchronous methods
- Fix performance issue on DynamicTree2D and DynamicTree3D HOT 1
- Add a dialog system for modal dialogs `prompt`, `alert` and `confirm` in the JS style. HOT 1
- Implement a `FileWriter` for writing to files on Android and LWJGL backends
- Android backend crashes on relaunch
- Implement Preferences API for persistent storage of Key-Value pair objects.
- Creating polygon convex hull from image HOT 1
- Clean SceneGraph and Entity Component API
- Forum is not working HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from silenceengine.