Android Studio files and code templates, and the problem of Chinese error

Source: Internet
Author: User
Tags sublime text java util

Android Studio files and code templates, and the problem of Chinese error

Han Mengfei Sand

Author:han_meng_fei_sha

Email: [Email protected]

e-mail:313134555 @qq. com

Android Studio after the Chinese, error.

Unable to find resource for bundle Java Util Property resource bundle, key Emmet Bem class name element delimiter

Can ' t find resource for bundle Java.util.PropertyResourceBundle, key Emmet.bem.class.name.element.separator.label

Bundle bundle

A resource is not in this file, the corresponding key is Emmet.bem.class.name.element.separator.label

Bem means blocks, elements (element), modifiers (modifier)

class="search-form">    <input type="text" class="search-form__username"> <input type="password" class="search-form__password"> <button id="J_Submit" class="search-form__submit--active"></button> <form>

The b here refers to block, which is "search-form."
Here the E, refers to the element, that is, following the search-form after the "username", "password" and "submit", and with two underscores ( __ ) to express the relationship
Here the M, refers to the modifier, that is, the "active" after the submit, with two connectors to express the relationship ( -- )

Emmet is a web-front development tool.

Espresso is an editor, Sublime Text is an editor.

========== More information:

Can ' t find resource for bundle Java.util.PropertyResourceBundle, key Emmet.bem.class.name.element.separator.label
Java.util.MissingResourceException:Can ' t find resource for bundle Java.util.PropertyResourceBundle, key Emmet.bem.class.name.element.separator.label
At Java.util.ResourceBundle.getObject (resourcebundle.java:450)
At Java.util.ResourceBundle.getString (resourcebundle.java:407)
At com.intellij.application.options.emmet.xmlemmetconfigurable.$$ $setupUI $$$ (Xmlemmetconfigurable.java)
At Com.intellij.application.options.emmet.xmlemmetconfigurable.<init> (xmlemmetconfigurable.java:55)
At Com.intellij.codeInsight.template.emmet.generators.XmlZenCodingGeneratorImpl.createConfigurable ( xmlzencodinggeneratorimpl.java:155)
At Com.intellij.application.options.emmet.EmmetConfigurableProvider.getAvailableConfigurables ( EMMETCONFIGURABLEPROVIDER.JAVA:41)
At Com.intellij.application.options.emmet.EmmetConfigurableProvider.createConfigurable ( EMMETCONFIGURABLEPROVIDER.JAVA:31)
At Com.intellij.openapi.options.configurableep$providerproducer.createelement (configurableep.java:326)
At Com.intellij.openapi.options.ConfigurableEP.createConfigurable (configurableep.java:273)
At Com.intellij.openapi.options.ex.ConfigurableWrapper.createConfigurable (configurablewrapper.java:54)
At Com.intellij.openapi.options.ex.ConfigurableWrapper.getConfigurable (configurablewrapper.java:121)
At Com.intellij.openapi.options.ex.ConfigurableWrapper.cast (configurablewrapper.java:102)
At Com.intellij.openapi.options.ex.configurablewrapper$compositewrapper.getconfigurables ( CONFIGURABLEWRAPPER.JAVA:256)
At Com.intellij.openapi.options.neweditor.settingstreeview$mynode.buildchildren (SettingsTreeView.java:473)
At Com.intellij.ui.treeStructure.CachingSimpleNode.getChildren (cachingsimplenode.java:36)
At Com.intellij.ui.treeStructure.SimpleTreeStructure.getChildElements (simpletreestructure.java:25)
At Com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache (filteringtreestructure.java:67)
At Com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache (filteringtreestructure.java:82)
At Com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.addToCache (filteringtreestructure.java:82)
At Com.intellij.ui.treeStructure.filtered.FilteringTreeStructure.rebuild (filteringtreestructure.java:62)
At Com.intellij.ui.treestructure.filtered.filteringtreestructure.<init> (filteringtreestructure.java:54)
At Com.intellij.ui.treestructure.filtered.filteringtreestructure.<init> (filteringtreestructure.java:45)
At Com.intellij.ui.treestructure.filtered.filteringtreebuilder.<init> (filteringtreebuilder.java:53)
At Com.intellij.openapi.options.neweditor.settingstreeview$mybuilder.<init> (SettingsTreeView.java:804)
At Com.intellij.openapi.options.neweditor.settingstreeview.<init> (settingstreeview.java:207)
At Com.intellij.openapi.options.neweditor.settingseditor.<init> (settingseditor.java:149)
At Com.intellij.openapi.options.neweditor.settingsdialog.<init> (settingsdialog.java:70)
At Com.intellij.ide.actions.ShowSettingsUtilImpl.getDialog (showsettingsutilimpl.java:57)
At Com.intellij.ide.actions.ShowSettingsUtilImpl.showSettingsDialog (showsettingsutilimpl.java:94)
At Com.intellij.ide.actions.ShowSettingsAction.actionPerformed (showsettingsaction.java:62)
At Com.intellij.openapi.actionsystem.ex.actionutil$1.run (actionutil.java:197)
At Com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction (transactionguardimpl.java:88)
At Com.intellij.openapi.application.TransactionGuardImpl.submitTransactionAndWait (transactionguardimpl.java:156 )
At Com.intellij.openapi.actionSystem.ex.ActionUtil.performActionDumbAware (actionutil.java:211)
At Com.intellij.openapi.actionsystem.impl.actionmenuitem$actiontransmitter.lambda$actionperformed$2 ( actionmenuitem.java:304)
At Com.intellij.openapi.wm.impl.FocusManagerImpl.runOnOwnContext (focusmanagerimpl.java:905)
At Com.intellij.openapi.wm.impl.IdeFocusManagerImpl.runOnOwnContext (idefocusmanagerimpl.java:124)
At Com.intellij.openapi.actionsystem.impl.actionmenuitem$actiontransmitter.actionperformed (ActionMenuItem.java : 284)
At Javax.swing.AbstractButton.fireActionPerformed (abstractbutton.java:2022)
At Com.intellij.openapi.actionsystem.impl.actionmenuitem.lambda$fireactionperformed$0 (ActionMenuItem.java:112)
At Com.intellij.openapi.application.TransactionGuardImpl.runSyncTransaction (transactionguardimpl.java:88)
At com.intellij.openapi.application.transactionguardimpl.access$300 (transactionguardimpl.java:40)
At Com.intellij.openapi.application.transactionguardimpl$2.run (transactionguardimpl.java:113)
At Com.intellij.openapi.application.TransactionGuardImpl.submitTransaction (transactionguardimpl.java:123)
At Com.intellij.openapi.application.TransactionGuard.submitTransaction (transactionguard.java:109)
At Com.intellij.openapi.actionSystem.impl.ActionMenuItem.fireActionPerformed (actionmenuitem.java:112)
At Com.intellij.ui.plaf.beg.BegMenuItemUI.doClick (begmenuitemui.java:513)
At com.intellij.ui.plaf.beg.begmenuitemui.access$300 (begmenuitemui.java:45)
At com.intellij.ui.plaf.beg.begmenuitemui$mymouseinputhandler.mousereleased (begmenuitemui.java:533)
At Java.awt.Component.processMouseEvent (component.java:6533)
At Javax.swing.JComponent.processMouseEvent (jcomponent.java:3324)
At Java.awt.Component.processEvent (component.java:6298)
At Java.awt.Container.processEvent (container.java:2236)
At Java.awt.Component.dispatchEventImpl (component.java:4889)
At Java.awt.Container.dispatchEventImpl (container.java:2294)
At Java.awt.Component.dispatchEvent (component.java:4711)
At Java.awt.LightweightDispatcher.retargetMouseEvent (container.java:4888)
At Java.awt.LightweightDispatcher.processMouseEvent (container.java:4525)
At Java.awt.LightweightDispatcher.dispatchEvent (container.java:4466)
At Java.awt.Container.dispatchEventImpl (container.java:2280)
At Java.awt.Window.dispatchEventImpl (window.java:2746)
At Java.awt.Component.dispatchEvent (component.java:4711)
At Java.awt.EventQueue.dispatchEventImpl (eventqueue.java:758)
At java.awt.eventqueue.access$500 (eventqueue.java:97)
At Java.awt.eventqueue$3.run (eventqueue.java:709)
At Java.awt.eventqueue$3.run (eventqueue.java:703)
At java.security.AccessController.doPrivileged (Native Method)
At Java.security.protectiondomain$javasecurityaccessimpl.dointersectionprivilege (ProtectionDomain.java:80)
At Java.security.protectiondomain$javasecurityaccessimpl.dointersectionprivilege (ProtectionDomain.java:90)
At Java.awt.eventqueue$4.run (eventqueue.java:731)
At Java.awt.eventqueue$4.run (eventqueue.java:729)
At java.security.AccessController.doPrivileged (Native Method)
At Java.security.protectiondomain$javasecurityaccessimpl.dointersectionprivilege (ProtectionDomain.java:80)
At Java.awt.EventQueue.dispatchEvent (eventqueue.java:728)
At Com.intellij.ide.IdeEventQueue.defaultDispatchEvent (ideeventqueue.java:795)
At Com.intellij.ide.ideeventqueue._dispatchevent (ideeventqueue.java:627)
At Com.intellij.ide.IdeEventQueue.dispatchEvent (ideeventqueue.java:387)
At Java.awt.EventDispatchThread.pumpOneEventForFilters (eventdispatchthread.java:201)
At Java.awt.EventDispatchThread.pumpEventsForFilter (eventdispatchthread.java:116)
At Java.awt.EventDispatchThread.pumpEventsForHierarchy (eventdispatchthread.java:105)
At Java.awt.EventDispatchThread.pumpEvents (eventdispatchthread.java:101)
At Java.awt.EventDispatchThread.pumpEvents (eventdispatchthread.java:93)
At Java.awt.EventDispatchThread.run (eventdispatchthread.java:82)

=============

Document template file Templates

Check Description Inspection Descriptions

Intending to describe intention descriptions

Suffix template postfix Templates

=======

The ResourceBundle class is a way for Java to read a properties file (a configuration file).

The file is annotated with the beginning of #, the following is the configuration file for my database connection

========

#数据库配置信息 DRIVER=com.mysql.jdbc.Driver URL=jdbc:mysql: //localhost:3306/test user=rwuser password=rwuser #路径配置信息 path=D:\\Java\\jdk1. 6 .0_31\\bin======== Below is what I use ResourceBundle class processing: ======== package iceinfo.bat.test; import java.util.ResourceBundle; public class TestResourceBundle {      public static void main(String[] args) {          String fileName= "config" ; //        config.properties它跟普通java类的命名规则完全一样:    //        - 文件名和包名是区分大小写    //        - 扩展名 .properties 省略  //        - 资源文件必须位于classpath下,如果在某个包下成在定义fileName时要加上包的名称,且包名区分大小写    //        如果是Web项目,不写包路径可以,此时将资源文件放在WEB-INF\classes\目录下就可以。          ResourceBundle paramBundle = ResourceBundle.getBundle(fileName);          System.out.println(paramBundle.getString( "DRIVER" ));          System.out.println(paramBundle.getString( "URL" ));          System.out.println(paramBundle.getString( "user" ));          System.out.println(paramBundle.getString( "PASSWORD" )); //这儿是区分大小写的                   System.out.println(paramBundle.getString( "path" ));      } }

==========

NOTE: If filename is in the name of case or does not include the package name of the Properies file, then it will be reported exception in thread "main" Java.util.MissingResourceException:Can ' t Find bundle for Base name CONFIG1, Locale ZH_CN If you do not differentiate lowercase when you get the value corresponding to the key in the properties file exception in thread "main" java. Util. Missingresourceexception:can ' t find resource for bundle Java.util.PropertyResourceBundle, key password======= Emmet.bem.class.name.element.separator.label how to find in many files

Click Organization-Folder Options

Point to the Search tab, check the following always search for file name and content, and click OK

How to search for file contents in which file _ Baidu experience

Searchableoptions.xml

However, this search is valid for suffixes such as txt. For other, such as the. Properties suffix. is invalid: The content in this file is not searched. To search, change the suffix to txt.

======

We found that the Chinese document actionsbundle.properties a lot less sentences. So there was the problem. Compare the original file and add the necessary statements to it.

Android Studio files and code templates, and the problem of Chinese error

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.