My code line is the following and I'm getting the error
Unresolved reference: ConcatAdapter
I already tried with MergeAdapter and it's still not working.
val concatAdapter = ConcatAdapter(headerAdapter, itemsAdapter)
Any idea of what could be wrong?
Do you have RecyclerView 1.2.0 in your grade file?
It was released in that version https://developer.android.com/jetpack/androidx/releases/recyclerview#version_120_3
Related
I'm trying to compile the sample cameraxbasic but I get this error:
Unresolved reference: WindowManager
I checked gradle files and there is that dependency.
I reviewed the library change log at https://developer.android.com/jetpack/androidx/releases/window and adjusted the sample with following these changes to make it work. Hope this helps!
use implementation "androidx.window:window:1.1.0-alpha01"
replace WindowManager with WindowInfoTracker
replace WindowManager(context) with WindowInfoTracker.getOrCreate(view.context)
replace windowManager.getCurrentWindowMetrics().bounds with WindowMetricsCalculator.getOrCreate().computeCurrentWindowMetrics(requireActivity()).bounds
I managed to process module pymqe.c into pymqe.pyd for Python2 using VC 2017 compiler and my own make file. Unfortunately, it doesn’t work for Python3. If I try compile module pymqe.c from pymqi-1.9.3.tar.gz in the same way, the linking step fails with the error message:
LINK : error LNK2001: unresolved external symbol initpymq
pymqe.lib : fatal error LNK1120: 1 unresolved externals
My make file contains the following instruction to link pymqe.c with the resulting library pymqe.pyd:
/EXPORT:initpymqe pymqe.obj
I assume, the function initpymqe is excluded during compilation for Python3 due to pre-compiler instruction in the source code of the module pymqe.c:
#if PY_MAJOR_VERSION==2
void initpymqe(void) {
…
#else
Does anyone know, how to handle this problem?
I'm having the following error when trying to load rjags. I recently upgraded to OSX El Capitain and also installed the latest version of JAGS 4.0.1. Does any one know how to fix it?
library(rjags)
Error : .onLoad failed in loadNamespace() for 'rjags', details:
call: dyn.load(file)
error: unable to load shared object '/usr/local/lib/JAGS/modules-3/bugs.so':
dlopen(/usr/local/lib/JAGS/modules-3/bugs.so, 6): Symbol not found: _R_finite
Referenced from: /usr/local/lib/JAGS/modules-3/bugs.so
Expected in: /usr/local/lib/libjrmath.0.dylib
in /usr/local/lib/JAGS/modules-3/bugs.so
Error: package or namespace load failed for ‘rjags’
I found a solution by installing the development version of the rjags package.
http://sourceforge.net/projects/mcmc-jags/files/rjags/4/
When I try to run my project in iOS 4.3 Simulator, it throws me following exception:
dyld: lazy symbol binding failed: Symbol not found: _CGPathCreateWithEllipseInRect
Referenced from: /Users/macintosh/Library/Application Support/iPhone Simulator/4.3.2/Applications/FCBB8196-9F46-4F4E-BFB3-C28D0AAEC74F/Tick.app/Tick
Expected in: /Users/macintosh/Desktop/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
dyld: Symbol not found: _CGPathCreateWithEllipseInRect
Referenced from: /Users/macintosh/Library/Application Support/iPhone Simulator/4.3.2/Applications/FCBB8196-9F46-4F4E-BFB3-C28D0AAEC74F/Tick.app/Tick
Expected in: /Users/macintosh/Desktop/Xcode/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator4.3.sdk/System/Library/Frameworks/CoreGraphics.framework/CoreGraphics
I have set target to ios 4.3. My project runs fine on ios 5 and 6. I think some library is missing or is not supported in old version. What should I do to resolve this problem? Any help will be appreciated. Thanks.
CGPathCreateWithEllipseInRect is not available on iOS 4.3. It was new in iOS 5.0.
I'm trying to build P4Python, as described here and a more recent version found here. I have the P4 API located at C:\p4api. I have set the p4_api variable correctly in setup.cfg. While in C:\P4Python-2010.1, which is where P4Python is extracted, I run the command C:\P4Python-2010.1>python setup.py install > log.txt to install it.
However, I get a ton of unresolved externals as shown in log.txt (these are only a few):
P4Result.obj : error LNK2019: unresolved external symbol "private: static char * StrBuf::nullStrBuf" (?nullStrBuf#StrBuf##0PADA) referenced in function __ehhandler$?Fmt#P4Result##AAEXPBDPAU_object##AAVStrBuf###Z
PythonMergeData.obj : error LNK2001: unresolved external symbol "private: static char * StrBuf::nullStrBuf" (?nullStrBuf#StrBuf##0PADA)
P4MapMaker.obj : error LNK2001: unresolved external symbol "private: static char * StrBuf::nullStrBuf" (?nullStrBuf#StrBuf##0PADA)
P4API.obj : error LNK2001: unresolved external symbol "private: static char * StrBuf::nullStrBuf" (?nullStrBuf#StrBuf##0PADA)
I have no idea where it's looking to find these things or where they should be. I added the P4API directory to PATH, and I still get the errors. Any help is greatly appreciated.
In addition to the Python release could you also provide the P4API (exact Version string) you are using?
By thy way, you can make your life easier by going to the Perforce public to find pre-built binary releases here:
http://public.perforce.com:8080/guest/sven_erik_knop/P4Pythonlib/bin/?ac=83
Kind regards
Sven Erik
PS:
You can also contact support#perforce.com for any questions relating to Perforce and the P4API.
Yep: https://swarm.workshop.perforce.com/projects/p4pythonlib/files/p4pythonlib/bin
By the way, p4python is now in the PyPi archives, so you could simply use (for Python 2.7, 3.3 and 3.4, both 32 and 64 bit)
pip install p4python
this is new repo location on github,
https://github.com/perforce/p4python
according to
https://github.com/perforce/p4python/blob/master/RELNOTES.txt
since 2015 it can be installed via pip
Installation via pip
P4Python can be installed via pip from 2015.1 onwards. Simply run the command
pip install p4python