Tag Archives: development tool

Visual Studio Code Error command ‘markdown.extension.onBackspaceKey’ not found

background

Today, when using Visual Studio code to delete some characters with keyboard back, we found the following error:

command 'markdown.extension.onBackspaceKey' not found

It seems that it is caused by some shortcut key conflicts

Solution:

Open file – > preferences – > keyboard shortcut and search back, as shown in the figure below:

Just reset a shortcut key for this option:

Idea | change the default configuration of idea to open a new project

background

Children’s shoes who have used idea should find that when you open a new project with idea, you always need to reconfigure it. It will use the default configuration of the system, such as maven, JDK and so on.

Solution

Idea actually has a setting to change the default configuration of new projects. You can change a default configuration for new projects through the following configuration:
file - & gt; other settings - & gt; setting for new projects or file - & gt; other settings - & gt; structure for new projects



19 Android must kill gadgets

19 Android must kill gadgets

1. Xappdbg
xappdbg is an application development tool that can change the parameters in the code during operation. This tool can save you a lot of time, because you don’t have to recompile and run your program for every small change of the application.

2. Chkbugreport
this tool can quickly check the output Android error reports. It does semantic analysis from a large number of text files output by Android error reporting tool, and then parses them into a more readable document, which is easier to analyze. Chkbugreport is also an open source project.
3. Apkanalyser
this is a static and virtual analysis tool. You can have a comprehensive overview of the application architecture. You can use it to check API references, check application dependencies, and decompile bytecode. Apkanalyser is a complete open source tool chain. It supports modifying the application binary code. You can repackage, install, run and verify the results of logcat.

4. Appxplore
with the appxplore tool, you can browse all the apps installed on your Android device, and analyze the details of many apps — app version, package name, certificate, permission, signature, activities and other information that can’t be viewed on many devices. Appxplore is especially useful for checking the memory size occupied by the application when it is running and whether the files can be moved to the SD card. Similarly, developers can test and ensure the quality of the application. This ensures that the application displays the appropriate permissions on the manifest file.
5. Memory analyzer (MAT)
memory analyzer on eclipse is a fast and functional Java heap analysis tool, which can help you find memory leaks and reduce memory overhead. Using memory analyzer, we can analyze millions of objects and multiple heap dumps, quickly count the number of objects left, so that we can see which objects prevent the garbage collector from collecting. Finally, run a report to automatically report the suspicious place that caused the leak.
6. Eclipse Plug-in sqlitemanger
this plug-in can help developers view and modify SQLite database on eclipse.
7. Robotium
robotium is a testing framework, which can simply write a powerful and robust automatic black box test container for Android applications. With robotium, test developers can support a variety of Android activities to write function, system and acceptance test scripts. Robotics fully supports activity, dialogues, toast, menus and context menus.
8. Acra
acra is a function library that allows Android applications to automatically issue Google doc format crash reports. Android developers can get the data of application crash or wrong behavior through acra. If a crash occurs, your application will not add user alerts beyond the existing system crash alerts or reporting functions. If toast, status bar or direct dialog mode is used, the “forced close” dialog will no longer be displayed. Even if the reminder function of the native system on the device is turned on, another report cannot be sent.
Br> the Android binder will convert all of your Android layout statements into a series of XML files. Type a prefix, select the range to paste on the XML file, and then click generate. Select “verb” to find out why all the areas are skipped.
10. The ever expanding ecosystem of Android devices has brought unique challenges to test applications. Spoon simplifies this task by assigning execution of instrumentation tests and displaying results in a more meaningful way. Instead of trying to be a new form of testing, spoon makes the current instrumentation testing more useful. With the application’s APK and instrumentation APK, spoon can run tests on multiple devices at the same time. Once all the tests are completed, a static HTML summary is generated that includes the details of the various device tests.
11. Android content provider code generator
do you often copy and paste a lot of code to write a content provider?Then this code generation tool can help you.
12. Start your next android app in 10 seconds. Android KickStarter uses the most popular library to help you quickly build a configured android app. It creates and configures projects for you, and focuses directly on the code!
13. Android holo color generator
this Android holo color generator allows you to simply create Android components for your application, such as editext or spinner, and use your own colors. It will generate all nine necessary patch assets and related XML drawables and styles files, which can be directly copied into your project.
14. Actionbar style generator
this actionbar style generator allows you to easily create a concise, attractive and bug free custom actionbar. It will generate all nine necessary patch assets and related XML drawables and styles files, which can be copied directly into your project.
15. Asset studio
asset Studio allows you to quickly and easily generate icons from existing images, clip art or text resources.
16. Little eye labs
little eye labs is a performance analysis tool for Android applications. Its product has been renamed “little eye” instead of “little eye appinsight”. Keep our product catalog concise, consistent with the overall theme that we focus on simplicity in each part of our work.
Main features:
outline any application;
record and playback video;
front end and background usage;
consumption of CPU, memory and data;
manual or automatic heap dump;
save and share.
17. The concept of “overdraw” is considered to be very important in the Android world. At the Google I/O conference, few speeches emphasized the importance of reducing overdraft. This is the first tool (the best I know) that can help us easily identify overdrafts.
Main features
3D query;
find overdraft;
box model;
combine with DDMS;
view hierarchy;
background/content;
webgl;
2D to 3D to 2D;
· more
18. Android Button Maker
Android Button Maker is a tool that can generate button code online. The Android API provides drawable resources for geometric shapes defined by XML files, including colors, boundaries, and gradients. The generation of these buttons is based on XML code in drawable form, which can load faster than ordinary PNG buttons. You can customize the properties of the button on the settings panel and get its source code.
19. Jsonschema2pojo
is used to generate POJO (plain old Java object) class on JSON architecture. This small and powerful tool can save you the time to write POJO.

Zeal Open html,css, javascript Error: Content rendering error

Problem
Recently, after updating html,css,javascript, the following Content rendering error occurs

Solution
Delete the corresponding files in the following resource folder
JavaScript.docset\Contents\Resources\Documents\developer.mozilla.org\static\build\js\react-main.e49be9481ede.jsCSS.docset\Contents\Resources\Documents\developer.mozilla.org\static\build\js\react-main.e49be9481ede.jsHTML.docset\Contents\Resources\Documents\developer.mozilla.org\static\build\js\react-main.e49be9481ede.js
js file named similarly to react-main.<hashcode>.js
Take the css docs fix as an example
Edit --> Preferences

Delete the files in the corresponding folder

ok

Research on invalid modification of elementui component style

Background: the default font of El tabs is 14px. If you want to change it to 12px, adding styles in style will not work.

Solution: put style in app.vue Inside, the style takes effect

.panel-content .el-tabs__item.is-top{
  font-size 12px
}

Principle analysis: in Vue component, we often need to add scoped to style to make the current style only act on the node of the current component. After adding scoped, the work behind Vue is actually to add a unique attribute identifier like “data-v-1233” to the node of the current component. Of course, it will also add [data-v-1233] to all styles of the current style. In this way, the current style can only act on the node of the current component.

But we need to note that if we add a child component, similarly, if the child component is also identified with scoped, then the node in the child component cannot be set in the parent component.

If the parent component has scoped and the child component is not set, the style of the node of the child component cannot be set in the parent component. Because the parent component uses scoped, the style set in the parent component is unique and will not affect other component styles.

When I used the Vue quill editor rich text editor, I came across this pit. I just want to set the height of the content area. In this case, it must be in the App.vue Set in, we App.vue Equivalent to the root container, scoped is not set, so it can be set.

Adding scoped in style is equivalent to adding a unique logo on the page.

Solve the previous one bean.xml “Error while downloading” in < bean > tag http://www.springframework.org/schema/beans/sprin…

In the XML file, the error in the header is as follows

At the beginning of the query, it was said that “& lt;?XML version =” 1.0 “encoding =” UTF-8 “?& gt;” was missing in the header, but I didn’t have this problem, which may be encountered by someone.

And this error does not affect the operation of the project, of course, it may be that I did not notice or did not write the relevant reference code.

Now I know that the original reason is that the tool is relatively new and may lack tags. Just add the & lt; XML body & gt; tag

That’s good

 

Reproduced in: https://www.cnblogs.com/zhangyuanbo/p/11250563.html

When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error

When using idea to start a project, an error is reported: Error:java : Compilation failed: internal java compiler error

(1) Error reason: the setting in Java compiler is inconsistent with the Java version used in the current project.

(2) Solution: if Java 1.8 is used in the project, it should be set to 1.8 in Java compiler.

The settings are as follows:

References: Click to open the link

Error creating bean with name ‘sqlsessionfactory’ defined in class path resource

Today, I made an error when integrating mybatis with spring, as follows:

Caused by: org.springframework.beans . factory.BeanCreationException :

Error creating bean with name ‘sqlSessionFactory’ defined in class path resource [config/ applicationContext.xml ]:

Cannot resolve reference to bean ‘config/ mybatis.xml ‘ while setting bean property ‘configLocation’;

nested exception is org.springframework.beans . factory.NoSuchBeanDefinitionException : No bean named ‘config/ mybatis.xml ‘ is defined

My English is not very good. I understand it in general applicationContext.xml There is an error registering configlocation in

<bean id=”sqlSessionFactory” class=” org.mybatis.spring .SqlSessionFactoryBean”>
<property name=”dataSource” ref=”dataSource”></property>
<property name=”configLocation” ref=”config/ mybatis.xml “></property>
</bean>

After a careful examination of the code, I found that there was something wrong. Alas, the correct code is as follows

<bean id=”sqlSessionFactory” class=” org.mybatis.spring .SqlSessionFactoryBean”>
<property name=”dataSource” ref=”dataSource”></property>
<property name=”configLocation” value=”config/ mybatis.xml “></property>
</bean>

Give me a fulcrum, I can pry the whole earth, give me a mistake, I can support the whole project

Android foundation error failed to install

 

Blog from: http://blog.csdn.net/liuxian13183 , reprint and indicate the source! All Rights Reserved ! 

 

Android error: Failed to install *.apk on device *: timeout

There are several common solutions to this problem

PS: Item 9 is most commonly used

1. Set the DDMS of ADB from 5000 to 10000

 

 

 

2. ADB kill server ADB start server
3. Replace a new data cable
4. Restart the mobile phone
5. Do not plug the mobile phone with USB3.0 socket
6. Uninstall the application and reload it with eclipse
7. Modify the connection port between USB and computer in eclipse preferences

 

 

8. Restart the computer

 

9、netstat -a -n -o |findstr “5037” 

Enter the above command on the command line. In the windows task manager process, find PID 5037 but not adb.exe Yes, kill it. Common ones are tadb.exe , AndroidServer.exe Wait, and then restart eclipse

Or combine the above methods.

 

In addition, the solution is as follows:

You can configure the environment variables for the SDK at that time. Remember to configure both tools and platform tools!

 

The earlier problems of eclipse are mentioned above, but now we have switched to Android studio. Let’s talk about some problems about not installing eclipse

Time: August 9, 2017

Model: Hongmi 4x

Question: delete_ FAILED_ INTERNAL_ ERROR Error while Installing APKs

Solution process:

1. Check “install unknown source” in mobile phone settings security, the attempt is invalid

2. Find other applications enabled with port 5037, no

3. In the mobile developer settings, open “USB install”, the attempt is invalid

Solution:

1. In developer mode, turn off the “start MIUI optimization” – the reason may be that Xiaomi has intercepted the ADB installation command.

2. Shut down Android studio’s instantrun – the reason may be that Xiaomi doesn’t support the APK method of cutting instantrun

The ultimate solution.

1: Use the ADB command to connect the mobile phone and computer for development http://blog.csdn.net/xiabing082/article/details/54376461

Note: before using the ADB command, use the data cable to establish a connection between the computer and the mobile phone.

2: Using Android studio’s ADB WiFi plug-in, the mobile phone and the computer are in the same LAN. After connecting the computer for the first time, use the plug-in to connect the mobile phone, and select the option with IP (this is the virtual connection mode of the plug-in), so it has nothing to do with the local device. You can use it safely.