runtime-error

Error: “Program type already present: androidx.versionedparcelable.CustomVersionedParcelable”

孤人 提交于 2019-12-05 00:55:14
I am having trouble with the following Error --> Error: Program type already present: androidx.versionedparcelable.CustomVersionedParcelable When I click in Build errors it shows me this: AGPBI: {"kind":"error","text":"Program type already present: androidx.versionedparcelable.CustomVersionedParcelable","sources":[{}],"tool":"D8"} :app:transformDexArchiveWithExternalLibsDexMergerForDebug FAILED FAILURE: Build failed with an exception. I don't understand what it is causing this problem because I am using Parcelable library but never caused me this type of error. This is my project's gradle file

Why am I getting this error with Laravel: PHP Catchable Fatal Error?

让人想犯罪 __ 提交于 2019-12-05 00:45:33
I'm getting this error when I try to run php artisan (anything) : PHP Catchable fatal error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in /www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/RoutingServiceProvider.php on line 56 and defined in /www/laravel5/vendor/laravel/framework/src/Illuminate/Routing/UrlGenerator.php on line 81 Catchable fatal error: Argument 2 passed to Illuminate\Routing\UrlGenerator::__construct() must be an instance of Illuminate\Http\Request, null given, called in

Get type of an object with an object of null?

拟墨画扇 提交于 2019-12-05 00:44:22
The following code does compile, but why do I get a run time exception? String b = null; System.out.println(b.getClass()); Error I get is java.lang.NullPointerException How can I get the type of the object even if it's set to null? Edit I realize there is no object present, but there still is an object b of type String. Even if it holds no object, it still has a type. How do I get at the type of an object, regardless of if it holds an object or if it does not. When you have String b = null; what you actually have is a variable of reference type String that is referencing null . You cannot

AttributeError: Unknown property axisbg

Deadly 提交于 2019-12-05 00:29:50
Here is a code am trying to run: ax = plt.axes(axisbg='#E6E6E6') ax.set_axisbelow(True) plt.grid(color='w',linestyle='solid') for spine in ax.spines.values(): spine.set_visible(False) ax.xaxis.tick_bottom() ax.yaxis.tick_left() ax.tick_params(colors='gray',direction='out') for tick in ax.get_xticklabels(): tick.set_color('gray') for tick in ax.get_yaxislabels(): tick.set_color('gray') ax.hist(x,edgecolor='E6E6E6',color='E6E6E6'); And the Error is: AttributeError: Unknown property axisbg Please help me identify the error. Replace the below line of code ax = plt.axes(axisbg='#E6E6E6') with ax =

An error occurred after update the Android SDK Tool REV 22 “Unable to resolve superclass of L”

早过忘川 提交于 2019-12-04 23:33:04
The project is good yesterday, but when I update Sdk tools and ADT today(REV 22), the error occurred like "Unable to resolve superclass of L..." when I run the project. My project uses ActionbarSherlock and SlidingMenu. I have already tried: Copy external jars to my project's "libs" folder. (I have already do this before) Properties->Java Build Path->Projects and add the library project there. clean and rebuild reset the computer or IDE Try other project which also contains project lib Follow Class not found error after updating ADT and Android sdk tools to latest ver 22 But they are all

“An error occurred while accessing the keychain” when signing in using Firebase

穿精又带淫゛_ 提交于 2019-12-04 18:25:53
问题 Background: I'm using Firebase for my apps login. I am using the login via email address functionality. The error started after starting to use the new xCode beta and updating the code to Swift 3 You can see a prototype of the problem here: https://bitbucket.org/gilosborne/firebasetest The error: When I try to log in I get the error, "An error occurred while accessing the keychain". I am not using Apple keychain in any way, I believe it is referring to the mentions of keychain here: https:/

Android java.lang.NoClassDefFoundError after import JAR

微笑、不失礼 提交于 2019-12-04 17:40:35
I got a problem... I made a Jar (called "GeoFence.jar"), that I have to use on a Android Project. So, what I done is: Look In so many webs HowTo's create "libs" folder in the android project. add my JAR (manually) then I went to Java Build Path and checked that my JAR was included to the Android Dependences. finally I made the necessary Imports to use the class I need from JAR. After do all of this, I runned my App, and it throws this error: and I don't understand what's going on, cause, I Fixed the Project Properties and cleaned it. And it's still not working. Here is how i have the structure

xcode error: …this class is not key value coding-compliant for the key ibShadowedLargeTitleTextAttributes

房东的猫 提交于 2019-12-04 15:35:16
问题 I keep getting this error. The app worked before I used a color set. The error says something about ibShadowedLargeTitleTextAttributes . I dont have any color set for the large title shadow, I am using the default (clear). I restarted Xcode, used a color for the shadow, removed it again. The error keeps showing up when I want to run it, but the built succeeds. The full error message: Terminating app due to uncaught exception 'NSUnknownKeyException', reason: '[<UINavigationBar 0x10650fd10>

What causes “irrefutable pattern failed for pattern” and what does it mean?

偶尔善良 提交于 2019-12-04 15:31:26
问题 What does irrefutable pattern failed for pattern mean? What cases will cause this runtime error? 回答1: Well, I assume it means what it says - that a pattern doesn't match but there is no alternative. This example: But for the program: g x = let Just y = f x in h y GHC reports: Main: M1.hs:9:11-22: Irrefutable pattern failed for pattern Data.Maybe.Just y Indicating the source of the failure. Comes from http://www.haskell.org/haskellwiki/Debugging The point of the example is that if f x returns

F2Py: Working with allocatable arrays in Fortran being invoked through Python

余生长醉 提交于 2019-12-04 15:06:47
Using F2Py to compile Fortran routines being suitable to be used within Python , the following piece of code is successfully compiled configured gfortran as the compiler while using F2Py , however, at the time of invoking in Python it raises a runtime error! Any comments and solutions? function select(x) result(y) implicit none integer,intent(in):: x(:) integer:: i,j,temp(size(x)) integer,allocatable:: y(:) j = 0 do i=1,size(x) if (x(i)/=0) then j = j+1 temp(j) = x(i) endif enddo allocate(y(j)) y = temp(:j) end function select A similar StackOverflow post can be found here . Take a look at