I am unable to get the GoogleVRForUnity.unitypackage project to build using either Unity 5.3.2 or Unity 5.4.0b21. When I try to build, I get an error saying:
CommandInvokationFailure: Failed to re-package resources.
(more detail below)
The steps that I followed were 1) Create a new project 2) import the unitypackage 3) switch to Android 4) change the bundle identifier & orientation 5) build (as outlined here: https://developers.google.com/vr/unity/get-started-controller#import_and_preview_the_demo_scene)
I am using:
The latest from github (https://github.com/googlevr/gvr-unity-sdk v0.8.1)
jdk1.8.0_91
Up to date Android Studio installed (2.1)
Android 6.X (N) API 24 Rev 1 SDK installed
The error that I get is this:
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Robert\AppData\Local\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Robert/AppData/Local/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.google.vr.cardboard:vr.gvr.platform.unity -S "C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res" -S "C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\unitygvractivity\res"
stderr[
]
stdout[
Configurations:
(default)
Files:
AndroidManifest.xml
Src: () AndroidManifest.xml
Resource Dirs:
Including resources from package: C:\Users\Robert\AppData\Local\Android\sdk\platforms\android-24\android.jar
applyFileOverlay for drawable
trying overlaySet Key=ic_settings_48dp.png
trying overlaySet Key=quantum_ic_arrow_back_white_24.png
trying overlaySet Key=quantum_ic_arrow_downward_white_24.png
trying overlaySet Key=quantum_ic_arrow_upward_white_24.png
trying overlaySet Key=quantum_ic_settings_white_24.png
trying overlaySet Key=rippleable.xml
trying overlaySet Key=transition.png
trying overlaySet Key=app_banner.png
trying overlaySet Key=app_icon.png
applyFileOverlay for layout
trying overlaySet Key=back_button.xml
trying overlaySet Key=transition_view.xml
trying overlaySet Key=ui_layer.xml
trying overlaySet Key=ui_layer_with_portrait_support.xml
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable-xhdpi\app_banner.png
Processing image: res\drawable\app_icon.png
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable\ic_settings_48dp.png
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_back_white_24.png: 154% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_back_white_24.png: 138% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xhdpi-v4\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xhdpi-v4\quantum_ic_arrow_back_white_24.png: 129% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxhdpi-v4\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable\ic_settings_48dp.png: 172% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxxhdpi-v4\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxhdpi-v4\quantum_ic_arrow_back_white_24.png: 136% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-mdpi-v17\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-mdpi-v17\quantum_ic_arrow_back_white_24.png: 152% size of source)
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxxhdpi-v4\quantum_ic_arrow_back_white_24.png: 113% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-hdpi-v17\quantum_ic_arrow_back_white_24.png
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xhdpi-v17\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-hdpi-v17\quantum_ic_arrow_back_white_24.png: 140% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xxhdpi-v17\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xhdpi-v17\quantum_ic_arrow_back_white_24.png: 122% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xxxhdpi-v17\quantum_ic_arrow_back_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xxhdpi-v17\quantum_ic_arrow_back_white_24.png: 133% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_downward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-ldrtl-xxxhdpi-v17\quantum_ic_arrow_back_white_24.png: 109% size of source)
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_downward_white_24.png: 146% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_downward_white_24.png
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xhdpi-v4\quantum_ic_arrow_downward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_downward_white_24.png: 142% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxhdpi-v4\quantum_ic_arrow_downward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xhdpi-v4\quantum_ic_arrow_downward_white_24.png: 147% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxxhdpi-v4\quantum_ic_arrow_downward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xxhdpi-v4\quantum_ic_arrow_downward_white_24.png: 135% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_upward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-mdpi-v4\quantum_ic_arrow_upward_white_24.png: 130% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_upward_white_24.png
(processed image C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-hdpi-v4\quantum_ic_arrow_upward_white_24.png: 141% size of source)
Processing image: C:\Users\Robert\Documents\GitHub\DaydreamTest\Test2\Temp\StagingArea\android-libraries\gvr_android_common\res\drawable-xhdpi-v4\quan
]
UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.CompileResources (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.Tasks.BuildResources.Execute (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.Android.PostProcessor.PostProcessRunner.RunAllTasks (UnityEditor.Android.PostProcessor.PostProcessorContext context)
UnityEditor.HostView:OnGUI()
Go to Android Studio, SDK Manager. Remove the Android Build tool.
Then, start your Unity and build the apps. It would ask you to update the Android SDK. Then click "Yes". It should works after
Related
one of my apps is throwing the following exception on an Samsung S7:
java.lang.RuntimeException:
at android.app.NotificationManager.notifyAsUser
(NotificationManager.java:342)
at android.app.NotificationManager.notify (NotificationManager.java:292)
at android.app.NotificationManager.notify (NotificationManager.java:276)
at
org.mypapp.test.service.NotificationReceiverRemoteViews.updateNotification
(NotificationReceiverRemoteViews.java:202)
at org.mypapp.test.service.NotificationReceiverRemoteViews.onReceive
(NotificationReceiverRemoteViews.java:63)
at android.support.v4.content.LocalBroadcastManager.executePendingBroadcasts
(LocalBroadcastManager.java:308)
at android.support.v4.content.LocalBroadcastManager.access$000
(LocalBroadcastManager.java:46)
at android.support.v4.content.LocalBroadcastManager$1.handleMessage
(LocalBroadcastManager.java:118)
at android.os.Handler.dispatchMessage (Handler.java:102)
at android.os.Looper.loop (Looper.java:154)
at android.app.ActivityThread.main (ActivityThread.java:6642)
at java.lang.reflect.Method.invoke (Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run
(ZygoteInit.java:1468)
at com.android.internal.os.ZygoteInit.main (ZygoteInit.java:1358)
Caused by: android.os.TransactionTooLargeException:
at android.os.BinderProxy.transactNative (Native Method)
at android.os.BinderProxy.transact (Binder.java:628)
at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag
(INotificationManager.java:899)
at android.app.NotificationManager.notifyAsUser
(NotificationManager.java:336)
Here the code at line 202:
notificationManager.notify(NOTIFICATION_ID, mBuilder.build());
I also use an Samsung S7 and I have never gotten that error. I can't reproduce the error with the ansdroid studio emulator either. So I don't know how to fix an error I can't reproduce.
Any idea?
Possible reason is that you update RemoteViews instance before NotificationManager#notify instead of recreating a new one thus producing memory leak. I described this case in another answer
Goal - I am setting up an asset pipeline using grunt to convert and compress image files for a website.
Issue - grunt-responsive-images fails to find gm/convert.
Warning: Could not execute GraphicsMagick/ImageMagick: identify "-ping" "-format" "%m:%T:%s" "src/css/images/test.jpg" this most likely means the gm/convert binaries can't be found
GraphicsMagick is installed, and I am able to call gm version from the same directory:
GraphicsMagick 1.3.25 2016-09-05 Q16 http://www.GraphicsMagick.org/
If I comment out the engine: 'im' line below, the task runs and size and compression settings are applied.
grunt.initConfig({
responsive_images: {
dev: {
options: {
// engine: 'im', <--does this invoke gm?
sizes: [{
name: 'small',
width: '30%',
suffix: '_small',
quality: 60
},{
name: 'large',
width: '50%',
suffix: '_large',
quality: 40
}]
},
Question 1 - What is engine: 'im' doing?
Question 2 - How is grunt-responsive-images resizing and compressing images files when engine: 'im' isn't specified? Is it using built-in image tools?
UPDATE
When I changed engine: 'im' to engine: 'gm', the tasks completed with no errors. Maybe im = imageMagick and gm = graphicsMagick? Also, maybe, grunt-responsive-images can find gm, but cannot find im?
Question 3 - How would I fix grunt-responsive-images to work with imageMagick (like I see in many tutorials)?
Thank you!
I found the answers in the documentation: grunt-responsive-images\options
Answer 1 -
options.engine: Chooses which graphics engine to use when resizing images. To use GraphicsMagick, set this to gm. To use ImageMagick, set this to im. You'll need the relevant engine installed.
Answer 2 -
I had gm installed via npm, and grunt-responsive-images was using that to compress and resize. I did not have imagemagick installed. brew list did not show imagemagick (graphicsmagick was listed, and probably why I thought I had installed imagemagick).
Answer 3 - The fix is simple; install imagemagick with homebrew:
brew install imagemagick then check with brew list. Now grunt runs with either 'gm' or 'im' engines selected.
Im having this problem that I couldn't find a way to solve. I have a dynamic grid with the allow selection option in true ant I have filters that if they changed the grid is reloaded and maybe has less rows than before. The problem occurs when I had selected a row, for example number 10 and then I reload the grid and only has for example 4 rows. When I try to put "Apply" (wich aplies the filters and reloads the grid) it sends the famous "ArrayIndexOutOfBoundsException". This is because it remembers the last line selected. Is there any way to clean that? To forget the line that was selected?
Im using GeneXus X Evolution 1 version 10.1.32504 U2.5
Here is the error trace:
javax.servlet.ServletException: java.lang.ArrayIndexOutOfBoundsException: 9 >= 6
at java.util.Vector.elementAt(Unknown Source)
at com.genexus.GXObjectCollectionBase.elementAt(GXObjectCollectionBase.java:424)
at com.si.ayc.aycampliacionesgeneralpaso1_43_impl.strup8N0(aycampliacionesgeneralpaso1_43_impl.java:1008)
at com.si.ayc.aycampliacionesgeneralpaso1_43_impl.start8N2(aycampliacionesgeneralpaso1_43_impl.java:305)
at com.si.ayc.aycampliacionesgeneralpaso1_43_impl.executeStartEvent(aycampliacionesgeneralpaso1_43_impl.java:137)
at com.si.ayc.mpprincipalayc_impl.start042(mpprincipalayc_impl.java:216)
at com.si.ayc.mpprincipalayc_impl.ws042(mpprincipalayc_impl.java:225)
at com.si.ayc.mpprincipalayc_impl.webExecute(mpprincipalayc_impl.java:56)
at com.si.ayc.aycampliacionesgeneralpaso1_43_impl.webExecute(aycampliacionesgeneralpaso1_43_impl.java:110)
at com.genexus.webpanels.GXWebObjectBase.doExecute(GXWebObjectBase.java:177)
at com.si.ayc.aycampliacionesgeneralpaso1_43.doExecute(aycampliacionesgeneralpaso1_43.java:21)
at com.genexus.webpanels.GXWebObjectStub.callExecute(GXWebObjectStub.java:44)
at com.genexus.webpanels.GXWebObjectStub.doPost(GXWebObjectStub.java:18)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:402)
at org.apache.catalina.servlets.InvokerServlet.doPost(InvokerServlet.java:170)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:157)
at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:131)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:190)
at org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:283)
at org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:767)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:697)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:690)
at java.lang.Thread.run(Unknown Source)
Thank you for reading and trying to help.
Manuela
I have a problem with showing video using QtMultimedia on Raspberry Pi (Raspbian):
When I'm using QMediaPlayer + QVideoWidget it gives me an error: "this plugin doesn't support setParent"
When I'm trying to show video with QtQuick it gives me errors:
pi#raspberrypi ~/Desktop/QtApp $ ./JM
Unable to query physical screen size, defaulting to 100 dpi.
To override, set QT_QPA_EGLFS_PHYSICAL_WIDTH and
QT_QPA_EGLFS_PHYSICAL_HEIGHT (in millimeters).
GStreamer; Unable to pause - ""
Error: "No URI set"
Here is QtQuick project: https://gist.github.com/anonymous/e41fa0721bc895d7fe00
Video is placed here: /home/pi/Desktop/QtApp/video/adv.mov
How can I solve this problems?
Your program does not find your video.
Replace:
source: "./video/adv.mov"
with:
source: "file:///home/pi/Desktop/QtApp/video/adv.mov"
in your video.qml
You added your video.qml into the Qt resources:
app.load(QUrl("qrc:/qml/video.qml"));
This is practically a different file system, so your root folder is probably not what you expected... and your relative path points nowhere.
I am using Coldfsuion 8.0.1 and Solaris 10 and when i try to run this URL, http://IPADDRESS/flex2gateway/http
I am receiving an error message "Premature end of file". Please help me out if i am missing any installation/fix.
And when i hit the same URL from browser it shows:
<amfx ver="3">
−
<body targetURI="/onStatus" responseURI="">
−
<object type="flex.messaging.messages.ErrorMessage">
−
<traits>
<string>headers</string>
<string>rootCause</string>
<string>body</string>
<string>correlationId</string>
<string>faultDetail</string>
<string>faultString</string>
<string>clientId</string>
<string>timeToLive</string>
<string>destination</string>
<string>timestamp</string>
<string>extendedData</string>
<string>faultCode</string>
<string>messageId</string>
</traits>
−
<object>
<traits/>
</object>
<null/>
<null/>
<null/>
<null/>
<string>Premature end of file.</string>
<null/>
<double>0.0</double>.........
Error details(Server side):
[Flex] Premature end of file.
flex.messaging.MessageException: Premature end of file.
at flex.messaging.io.amfx.AmfxMessageDeserializer.fatalError(AmfxMessageDeserializer.java:249)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLVersionDetector.determineDocVersion(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:198)
at flex.messaging.io.amfx.AmfxMessageDeserializer.parse(AmfxMessageDeserializer.java:103)
at flex.messaging.io.amfx.AmfxMessageDeserializer.readMessage(AmfxMessageDeserializer.java:90)
at flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilter.java:113)
Is the response xml dynamically generated?
It seems like the xml file is not validly formatted. If it's dynamically generated, the app creating it could be bombing out, thus the file is incomplete.