Couldn't generate Android App Bundle version of my App - litho

Is anyone else facing this problem?
I can generate Debug and Release versions of my App in Bundle Package. No gradle erros during the Assemble.
Dependencies:
// Litho
implementation 'com.facebook.litho:litho-core:0.19.0'
implementation 'com.facebook.litho:litho-widget:0.19.0'
compileOnly 'com.facebook.litho:litho-annotations:0.19.0'
annotationProcessor 'com.facebook.litho:litho-processor:0.19.0'
// Sections
implementation 'com.facebook.litho:litho-sections-core:0.19.0'
implementation 'com.facebook.litho:litho-sections-widget:0.19.0'
compileOnly 'com.facebook.litho:litho-sections-annotations:0.19.0'
annotationProcessor 'com.facebook.litho:litho-sections-processor:0.19.0'
// SoLoader
implementation 'com.facebook.soloader:soloader:0.5.1'
But when I run it on the Android Device, app crashes and logcat shows it:
2019-03-22 12:59:40.128 18103-18103/br.com.hinorede.app D/SoLoader: libyoga.so not found on /data/app/br.com.hinorede.app-aqB3syBNAjQg9cbzWpXDQg==/lib/arm64
2019-03-22 12:59:40.129 18103-18103/br.com.hinorede.app D/SoLoader: libyoga.so not found on /system/vendor/lib
2019-03-22 12:59:40.129 18103-18103/br.com.hinorede.app D/SoLoader: libyoga.so not found on /system/lib
2019-03-22 12:59:40.131 18103-18103/br.com.hinorede.app E/SoLoader: couldn't find DSO to load: libyoga.so
2019-03-22 12:59:40.131 18103-18103/br.com.hinorede.app D/AndroidRuntime: Shutting down VM
2019-03-22 12:59:40.137 18103-18103/br.com.hinorede.app E/AndroidRuntime: FATAL EXCEPTION: main
Process: br.com.hinorede.app, PID: 18103
java.lang.UnsatisfiedLinkError: couldn't find DSO to load: libyoga.so
at com.facebook.soloader.SoLoader.doLoadLibraryBySoName(SoLoader.java:703)
at com.facebook.soloader.SoLoader.loadLibraryBySoName(SoLoader.java:564)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:500)
at com.facebook.soloader.SoLoader.loadLibrary(SoLoader.java:455)
If I run the app using the traditional method (Apk File) it works fine. But when I run from the bundle it crashes.
Anyone?
Thanks.

Related

Build failed with an exception Execution failed for task ':app:processDebugResources'. >

Launching lib\main.dart on Snap 4G2 in debug mode...
Initializing gradle...
Resolving dependencies...
Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
Android resource linking failed
Output: error: resource android:attr/fontVariationSettings not found.
C:\Users\rajesh.yadav\AndroidStudioProjects\microfinance\build\app\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:337: error: resource android:attr/ttcIndex not found.
error: failed linking references.
Command: C:\Users\rajesh.yadav.gradle\caches\transforms-1\files-1.1\aapt2-3.2.1-4818971-windows.jar\333594338724db9cac843ec5e02726f3\aapt2-3.2.1-4818971-windows\aapt2.exe link -I\
C:\Users\rajesh.yadav\AppData\Local\Android\sdk\platforms\android-27\android.jar\
--manifest\
C:\Users\rajesh.yadav\AndroidStudioProjects\microfinance\build\app\intermediates\merged_manifests\debug\processDebugManifest\merged\AndroidManifest.xml\
-o\
C:\Users\rajesh.yadav\AndroidStudioProjects\microfinance\build\app\intermediates\processed_res\debug\processDebugResources\out\resources-debug.ap_\
-R\
C:\Users\rajesh.yadav\AndroidStudioProjects\microfinance\build\app\intermediates\incremental\processDebugResources\resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
BUILD FAILED in 2m 25s
Finished with error: Gradle task assembleDebug failed with exit code 1
You're using compile SDK version 27 (that's why android-27\android.jar is passed to AAPT2), but you or one of your dependencies is using resources from SDK version 28 (i.e. fontVariationSettings and ttcIndex). Update your compile SDK version in your build.gradle file to version 28.

openCV doesn't play video on Fedora 28

I have just started learn opencv and i encountered a problem about playing video. I use qt-creator for opencv and my os is fedora 28.
My code:
cv::VideoCapture vCap;
vCap.open("/home/enes/sample.mp4");
if(vCap.isOpened()){
cv::Mat frame;
cv::namedWindow("Video");
for(;;){
if(!vCap.read(frame)) break;
cv::imshow("Video", frame);
}
}
My problem is below.
Failed to query video capabilities: Inappropriate ioctl for device
libv4l2: error getting capabilities: Inappropriate ioctl for device
VIDEOIO ERROR: V4L: device /home/enes/sample.mp4: Unable to query number of channels
OpenCV(3.4.1) Error: Unspecified error (GStreamer: your gstreamer installation is missing a required plugin
) in handlemessage, file /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp, line 1869
VIDEOIO(cvCreateCapture_GStreamer (CV_CAP_GSTREAMER_FILE, filename)): raised OpenCV exception:
OpenCV(3.4.1) /builddir/build/BUILD/opencv-3.4.1/modules/videoio/src/cap_gstreamer.cpp:1869: error: (-2) GStreamer: your gstreamer installation is missing a required plugin
in function handlemessage
CvCapture_OpenNI::CvCapture_OpenNI : Failed to open input file (/home/enes/sample.mp4): Bad file extension
What should I do to solve this problem? Thanks.
I managed to play MP4 video with OpenCV on Fedora 28 by building the opencv module from source, as described here: Install OpenCV-Python in Fedora.
I also installed most of the gstreamer-plugins-* packages and uninstalled the managed OpenCV packages before compiling Open CV.

How to reslove instrumentation error in selendroid?

I have given following coding to start android device.While running,it points the android device and it creates the Android driver App in android device,after that it throws the following error message.
WebDriver driver = new RemoteWebDriver(DesiredCapabilities.android());
driver.get("url");
Error message:
Failed tests: setUp(mobileweb.photocentric.ScrollArticleTest): Could not start the app under test using instrumentation.
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation info for: ComponentInfo{io.selendroid.io.selendroid.androiddriver/io.selendroid.server.ServerInstrumentation}
INSTRUMENTATION_STATUS_CODE: -1
android.util.AndroidException: INSTRUMENTATION_FAILED: io.selendroid.io.selendroid.androiddriver/io.selendroid.server.ServerInstrumentation
at com.android.commands.am.Am.runInstrument(Am.java:865)
at com.android.commands.am.Am.onRun(Am.java:282)
at com.android.internal.os.BaseCommand.run(BaseCommand.java:47)
at com.android.commands.am.Am.main(Am.java:76)
at com.android.internal.os.RuntimeInit.nativeFinishInit(Native Method)
at com.android.internal.os.RuntimeInit.main(RuntimeInit.java:301)
at dalvik.system.NativeStart.main(Native Method)
I had the same problem and I found out that the androiddriver package was conflicting with a previous version installed in my device.
Try uninstalling the package from your device with the following command:
adb shell pm uninstall io.selendroid.io.selendroid.androiddriver

Error when building for IOS

I am having the following error when building for ios
ld: file too small (length=0) file '/Users/………./.robovm/cache/ios/x86/default/Users/ ……/.m2/repository/org/robovm/robovm-dist/0.0.13/unpacked/robovm-0.0.13/lib/robovm- rt.jar/java/nio/PipeImpl$PipeSinkChannel.class.o' for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
:ios:launchIPhoneSimulator FAILED
FAILURE: Build failed with an exception.
Any ideas? The desktop configuration is working. The JDK is 1.7+
I have installed the latest gradle setup for libgdx
Thanks
See for solution here: https://github.com/robovm/robovm/issues/238
You need to remove zero-length class from cache and run build again.

Robovm Libgdx demo fails at runtime with unresolved native function for objc_getSharedAccelerometer

I have run the "hello world cocoa" example from the robovm official site successfully.
But when I run the libgdx robovm demo, while it compiles OK, it fails with a runtime error.
I have followed every step of the wiki.
Do you have any advice?
[debug] IOSApplication: View: Portrait 320x480
[debug] IOSGraphics: 320.0x480.0, 1.0
[debug] IOSGraphics: Calculating density, UIScreen.mainScreen.scale: 1.0
[debug] IOSGraphics: Display: ppi=163, density=1.0
Exception in thread "main" java.lang.UnsatisfiedLinkError: Failed to resolve native function for method private static native org.robovm.cocoatouch.uikit.UIAccelerometer org.robovm.cocoatouch.uikit.UIAccelerometer.objc_getSharedAccelerometer(org.robovm.objc.ObjCClass,org.robovm.objc.Selector) with bridge annotation #org.robovm.rt.bro.annotation.Bridge(symbol=) in library #org.robovm.rt.bro.annotation.Library(value=UIKit)
at org.robovm.rt.bro.Runtime.resolveBridge(Runtime.java)
at org.robovm.rt.bro.Bro.bind(Bro.java)
at org.robovm.objc.ObjCRuntime.bind(ObjCRuntime.java)
at org.robovm.cocoatouch.uikit.UIAccelerometer.<clinit>(UIAccelerometer.java)
at com.badlogic.gdx.backends.iosrobovm.IOSInput.setupAccelerometer(IOSInput.java)
at com.badlogic.gdx.backends.iosrobovm.IOSInput.setupPeripherals(IOSInput.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication.didFinishLaunching(IOSApplication.java)
at com.badlogic.gdx.backends.iosrobovm.IOSApplication$Delegate.didFinishLaunching(IOSApplication.java)
at org.robovm.cocoatouch.uikit.UIApplicationDelegate$Callbacks.didFinishLaunching(UIApplicationDelegate.java)
at org.robovm.cocoatouch.uikit.UIApplication.UIApplicationMain(Native Method)
at org.robovm.cocoatouch.uikit.UIApplication.main(UIApplication.java)
at com.badlogicgames.superjumper.SuperJumperIOS.main(SuperJumperIOS.java)
The libgdx RoboVM backend only works properly with the latest nightly build of RoboVM and from the stacktrace you posted I guess you're using an older version. Please try the latest build from http://download.robovm.org.