Resource IDs cannot be used in a switch statement in Android library modules

版权声明:本文为博主原创文章,遵循 CC 4.0 by-sa 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://blog.csdn.net/xiyangyang8110/article/details/77530565

Android library中生成的R.java中的资源ID不是常数
不再使用switch…case
解决

  @Override
    public void onClick(View v) {
        int id=v.getId();
        if(id==R.id.imgv_earning){

        }
    }
展开阅读全文

javax.servlet.ServletException: Cannot create resource instance

08-08

HTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrnexception rnrnjavax.servlet.ServletException: Cannot create resource instancern org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)rn org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)rn org.apache.jsp.addMessageHandler_jsp._jspService(addMessageHandler_jsp.java:171)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnjavax.naming.NamingException: Cannot create resource instancern org.apache.naming.factory.ResourceFactory.getObjectInstance(ResourceFactory.java:132)rn javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304)rn org.apache.naming.NamingContext.lookup(NamingContext.java:791)rn org.apache.naming.NamingContext.lookup(NamingContext.java:138)rn org.apache.naming.NamingContext.lookup(NamingContext.java:779)rn org.apache.naming.NamingContext.lookup(NamingContext.java:138)rn org.apache.naming.NamingContext.lookup(NamingContext.java:779)rn org.apache.naming.NamingContext.lookup(NamingContext.java:138)rn org.apache.naming.NamingContext.lookup(NamingContext.java:779)rn org.apache.naming.NamingContext.lookup(NamingContext.java:151)rn org.apache.naming.SelectorContext.lookup(SelectorContext.java:136)rn javax.naming.InitialContext.lookup(InitialContext.java:351)rn org.apache.jsp.addMessageHandler_jsp._jspService(addMessageHandler_jsp.java:123)rn org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rn org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)rn org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)rn org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.0.28 logs.rn上面的这些信息是说的什么啊?我用的是连接池,但是我配好了的啊,而且在其他工程里面都没有出错,是怎么回事呢?麻烦各位圣贤了,小弟在此拜谢了rn下面的文件时我的工程文件,所有的东西都在里面了rn我也不知道是不是jdbc的jar包不兼容,还望各位兄台帮忙rnrnrn 问答

问题关于"Libtool library used but 'LIBTOOL' is undefined"

12-19

Ubuntu 12.04编译vlc for android,rn请教一下, 我已经安装了libtoolrnsudo apt-get install autoconfrnautoconf 已经是最新的版本了。rnsudo apt-get install automakernautomake 已经是最新的版本了。rnsudo apt-get install libtoolrnlibtool 已经是最新的版本了。rnsudo apt-get install gettextrngettext 已经是最新的版本了。rnrnautoreconf: Entering directory `.'rnautoreconf: configure.in: not using Gettextrnautoreconf: running: aclocal -I /home/android/android/vlc/contrib/arm-linux-androideabi/share/aclocal --force -I m4rnaclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'rnaclocal: warning: autoconf input should be named 'configure.ac', not 'configure.in'rnconfigure.in:20: warning: macro 'AM_PROG_LIBTOOL' not found in libraryrnconfigure.ac:26: warning: macro 'AM_PROG_LIBTOOL' not found in libraryrnconfigure.in:20: error: possibly undefined macro: AM_PROG_LIBTOOLrn If this token and others are legitimate, please use m4_pattern_allow.rn See the Autoconf documentation.rnautoreconf: /home/android/android/vlc/extras/tools/build/bin/autoconf failed with exit status: 1rnmake: *** [.ogg] 错误 1rnmake: *** 正在等待未完成的任务....rnconfigure.ac:17: error: possibly undefined macro: AC_DISABLE_STATICcharset/Makefile.am:1: error: Libtool library used but 'LIBTOOL' is undefinedrncharset/Makefile.am:1: The usual way to define 'LIBTOOL' is to add 'LT_INIT'rncharset/Makefile.am:1: to 'configure.ac' and run 'aclocal' and 'autoconf' again.rncharset/Makefile.am:1: If 'LT_INIT' is in 'configure.ac', make surerncharset/Makefile.am:1: its definition is in aclocal's search path.rn If this token and others are legitimate, please use m4_pattern_allow.rn See the Autoconf documentation.rnrn为什么'LIBTOOL' 还是未定义? 可能是什么原因? libtool.m4在/usr/share/aclocal目录下rn谢谢 论坛

没有更多推荐了,返回首页