Category Archives: How to Fix

Uncaught Error: Highcharts error #16

project used Highcharts to make charts, but accidentally found that the console reported an error as follows.

Analysis of

  • here I use frame error has provided the official of the highcharts address: https://www.highcharts.com/errors/16, you can click in to have a look. The contents are in English.

    the following address is highcharts official Chinese error description, said has been very clear.

    click the open link

    Highcharts error #16 is due to repeated definitions of Highcharts, this error occurs due to repetition in the namespace of Highcharts.

    and Highcharts namespace actually exists in the Highcharts.js file which we refer to when using Highcharts.

    so reason has two:

    js related files 0. This means that the highcharts. js file is referenced. and will lead to the repetition of command space of Highcharts. The correct way is to introduce js related to Highcharts into public pages and avoid dynamic page loading.

  • start full-text search with both Highstock. Js found no reference to the file (I know the project is not used for Highstock, but just to be sure). Since it is not this reason, I wonder if it is the second reason, but I do not understand the second reason, so it does not remind me anything.

    later in the project to find the problem of the breakthrough. also discovers that the home page of the project consists of the left menu, the system-level prompt page at the top, and the content page on the right. When you click an item in the left menu, the right content page is populated with the corresponding HTML page .

    and when I clicked on the menu, I found that the error repeatedly defined by highcharts almost every time I clicked it, and the first click after logging in (must be the click of the menu containing highcharts) would also report an error . Highcharts.js has been introduced into the main page of the menu.

    sure enough, I found the corresponding HTML to confirm my inference. That’s it.

    • solution

    js

    Highcharts.js js

    Highcharts.


    Conclusion

    • Highcharts.js was referenced on the home page, and Highcharts was repeatedly defined whenever the sub-page was loaded.

R language error:‘ namespace:lazyeval There is no exit_ The object is eval

attention WeChat common number: small range online

Follow CSDN blog: cheng zhiwei’s blog

appears when ggseqlogo package is installed today:

Error: ‘lazyeval’ has no export of the object’ f_eval ‘

The error

is caused by not installing the lazyeval package.

below is the specific code:

> Install. Packages (“G:/R language /R crawmer /R3.5 package /R3_5/lazyeval_0.2.1.zip”, repos = NULL, type = “win.binary”)
package ‘lazyeval’ unpacked and MD5 checked
> Library (“lazyeval”, lib.loc=”F:/R/ r-3.3.1 /library”)
Warning message:
Warning message:
library(“lazyeval”, lib.loc=”F:/R/ r-3.3.1 /library”)
Library (“ggseqlogo”, lib.loc=”F:/R/ r-3.3.1 /library”)
Warning message:
Warning message:
package “ggseqlogo” was built in R version 3.3.3

Android Error:AAPT: error: resource android:attr/colorError not found

Android resource linking failed
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:622: error: resource color/colorPrimary (aka com.example.viewpager:color/colorPrimary) not found.
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:623: error: resource color/colorPrimaryDark (aka com.example.viewpager:color/colorPrimaryDark) not found.
G:\work\viewPager\app\build\intermediates\incremental\mergeDebugResources\merged.dir\values\values.xml:624: error: resource color/colorAccent (aka com.example.viewpager:color/colorAccent) not found.
error: failed linking references.

Reason

25 below compileSdkVersion implementation ‘com. Android. Support: appcompat – v7:27.0.0’ version of the support.
error is usually reported when the compiled version of SDK is lower than the version in the support package, but this is not always true. The error is usually reported when the resource file in the higher version of support package is not found in the lower version of SDK.

solution

changes the compileSdkVersion to be consistent with support, and it is recommended to change the compileSdkVersion 27

Git bash Error: Could not fork child process: There are no available terminals (-1)

Error:
Error: Could not fork child process: There are no available terminals (-1)

:

solution :

(1) use the CMD command tasklist to find git bash’s process

(2) find the red marker

(3) execute the command (taskkill /pid 9872-t-f ) to kill it can be

reference problem resolution link :
Git bash Error: Could not fork child process: There are no available terminals (-1)

reproduced in: https://www.cnblogs.com/youcong/p/11032831.html

ios Cocoa error 4097

[UIKeyboardInputManagerClient handleError:forRequest:] will retry sending handleKeyboardInput:keyboardState:continuation: to keyboard daemon after receiving Error Domain=NSCocoaErrorDomain Code=4097 "The operation couldn’t be completed. (Cocoa error 4097.)"

IOS simulator -> Restore the contents and set

Clion appears cmake error: could not find cmake_ Root! What is the problem and how to solve it?

Clion appears CMake Error: Could not find CMAKE_ROOT!! What is the problem and how should it be solved?

this is my first blog post. I used to use codeblocks for c++, but it feels like the debug feature on codeblocks itself has never been particularly useful. Since I was recommended to use clion, I think clion debug function is really powerful and easy to use, but I reinstalled the win10 system, and then re-initialized it (is to set some user names, boot passwords and a lot of things), clion began to report crazy errors, that is


the causes of the errors is clion path there is a Chinese, will be garbled words, if you find that can solve the problem by changing the path all is well, but if because you just installed the new system, the initialization time wrote his own name, you think this is the name displayed when the phone is switched on (although it is) but also can make your disk c username (admin) changed to Chinese, so you can only to reinstall the re-initialization.

Solve angular’s cannot find module ‘@ angular devkit / core’ problem

after angular creation program, to add new components, but sometimes there will be “Cannot find module ‘@angular-devkit/core'” problem, the reason for this problem is the lack of @angular-devkit/core. In fact, this problem will prompt
at the time of new program creation, such as ng new newProject will appear after execution

npm WARN @angular-devkit/schematics@0.0.52 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.
npm WARN @schematics/angular@0.1.17 requires a peer of @angular-devkit/core@0.0.29 but none is installed. You must install peer dependencies yourself.

in these tips are @ presents – devkit/core is not installed successfully, the need to install the prompt
solution is installed, enter the directory executing the following command

npm i --save-dev @angular-devkit/core

if again prompted @angular-devkit/core did not install successfully you need to uninstall angular-cli and reinstall angular-cli

npm uninstall -g angular-cli
npm install -g @angular/cli@latest

will solve

after reinstallation

Reading package lists… Error! (How to Fix)

Reading package list…error!

E:No packages encountered: header

E: MergeList /var/lib/ apt/lists/az.archive.ubuntu.com_ubuntu_dists_natty_main_i18n _transl- en

E: The package list or status file cannot be parsed or opened.

 

Solution:

Running these two commands should fix your problem

Code:

sudo rm /var/lib/apt/lists/* -vf

The first command will delete the corrupt list and when you run the second command, it will replace it with a new one

Code :

sudo apt-get update

Solution: error: libtool library used but ‘libtool’ is undefined

When spice library function pixman is compiled,

appears:

pixman/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefined
pixman/Makefile.am:1:   The usual way to define 'LIBTOOL' is to add 'LT_INIT'
pixman/Makefile.am:1:   to 'configure.ac' and run 'aclocal' and 'autoconf' again.
pixman/Makefile.am:1:   If 'LT_INIT' is in 'configure.ac', make sure
pixman/Makefile.am:1:   its definition is in aclocal's search path.
test/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS')

means: LT_INIT is defined in configure. Ac, but aclocal cannot be searched. Configure.ac exists in the libtool file. Aclocal searches configure.ac through the libtool.m4 file.

solution:

1) make aclocal folder and libtool folder in the same directory, and aclocal contains libtool.m4, playing a bridging role;

2) when aclocal has libtool.m4 file, and aclocal and libtool file are in the same directory, it is also necessary to check whether the search path of aclocal is located in the parent directory of aclocal.

my search path is /usr/local/share/aclocal, but the parent directory of my aclocal and libtool is /usr/share/aclocal. The two are different.

all, to change the search path or to add the corresponding file under the current search path.

1) modify the search path and find that it cannot be changed:

2) choose to add the corresponding file in the current search path, and recompile:

success!

Session app error launching activity solution

As one: Launching activity of Session ‘app’ : Error , Launching activity cannot be launched on real machine. The solution is to close instant run

in the File – & gt; Settings-> Build, Execution,Deployment find Instant Run, remove the option before Instant Run,

click OK OK, recompile the running app



2: must open mobile developer debugging, even can detect equipment, should should ensure that the manual open



The solution to the problem is different from other solutions

java-jdk13 Error opening registry key ‘software\Javasoft\Java Runtime Environment’ problem solution differs from other solutions

to find other online solutions, found the first few pages of baidu solutions are the same. It’s disgusting. They tried all their ways to no avail, and then found a solution here.
C: \ ProgramData \ Oracle \ Java \ javapath. All Java files under this path are deleted.
later I thought maybe it was because I had installed java8 before and deleted it.
in addition, I recommend that you try other people’s solutions if they fail and try mine again.