草庐IT

instantiating

全部标签

安卓 java.lang.RuntimeException : Unable to instantiate activity ComponentInfo . .. java.lang.NullPointerException

出于某种原因,每次尝试启动我的应用程序时,我都会收到以下错误:UnabletoinstantiateactivityComponentInfo{com.example.lifeahead/com.example.lifeahead.MainActivity}:java.lang.NullPointerException我检查了我的list文件,每个Activity都已添加。启动应用程序时我使用的唯一方法是:privatevoidlogIn(){ButtonlogIn=(Button)findViewById(R.id.login);logIn.setOnClickListener(ne

android.app.Fragment$InstantiationException : Trying to instantiate a class ScannerFragment that is not a Fragment

我在app.gradle中更新了一些库,例如支持库从22.2.0->23.0.0和一些第三方库的版本,现在我在一个特定的Activity中遇到以下运行时错误:java.lang.RuntimeException:UnabletostartactivityComponentInfo{com.example.shubhamkanodia.bookmybook/com.example.shubhamkanodia.bookmybook.AddBooksActivity_}:android.view.InflateException:BinaryXMLfileline#155:Errorinf

android - java.lang.InstantiationException : can't instantiate class . .. 没有空构造函数

我找到了与我的问题类似的主题,但到目前为止找不到我正在寻找的答案。我的应用程序包含一个FragmentActivity,它承载一个ViewPagerAdapter(FragmentPagerAdapter的子级),每个选项卡中都有一个fragment。我的ViewPagerAdapter是在父activity的OnCreateView函数中实例化的_adapter=newViewPagerAdapter(getApplicationContext(),getSupportFragmentManager(),numOfTabs,status);ViewPagerAdapter实现了所需的

android - Cordova angular2应用程序中的"Exception: Error during instantiation of t! Primary outlet already registered."

我正在用我的项目构建一个简单的cordova应用程序。它有2层嵌套(主路由)->子路由->(另一个子路由)。尝试浏览到第2层(另一个子路由)时我收到一条错误消息:Exception:Errorduringinstantiationoft!主要socket已注册。第一级工作正常。我没有在任何模板中使用过两次路由器socket。浏览器仿真和android仿真都是一样的问题。附上下面的chromeinspect。我的HTML文件HelloWorldApacheCordovaConnectingtoDevice我的构建源代码结构:我的主要组成部分:import{Component}from'a

Android 运行时异常 : Unable to instantiate activity componentInfo?

我正在运行一个列表fragment程序,在运行时出现以下错误。错误:**02-0909:03:40.213:ERROR/AndroidRuntime(572):java.lang.RuntimeException:UnabletoinstantiateactivityComponentInfo{ni.android.Fragment/ni.android.Fragment.Fragment}:java.lang.ClassNotFoundException:ni.android.Fragment.Fragmentinloaderdalvik.system.PathClassLoader

安卓java.lang.RuntimeException : Unable to instantiate activity ComponentInfo

好的,伙计们,这对我来说根本没有意义,我不明白为什么我的应用程序会出现此错误。我已经在androidmanifrestxml中注册了Activity类。java.lang.RuntimeException:UnabletoinstantiateactivityComponentInfo{com.mobile.batteryhelper/com.mobile.batteryhelper.Battery}:java.lang.ClassNotFoundException:Causedby:java.lang.ClassNotFoundException:com.mobile.battery

android - : Unable to instantiate application and ClassNotFound while sharing apk

当我从androidstudio运行应用程序时,它在模拟器和设备中运行良好。但是当我分享apk的调试/发布版本时,当用户点击应用程序图标时它崩溃了。根据我在日志中看到的错误03-1109:16:12.65425384-25384/com.microtechnicianappE/AndroidRuntime:FATALEXCEPTION:mainProcess:com.microtechnicianapp,PID:25384java.lang.RuntimeException:Unabletoinstantiateapplicationcom.microtechnicianapp.App

android - java.lang.RuntimeException : Unable to instantiate activity ComponentInfo/ClassNotFoundException 错误

我正在开发android应用程序,我想要额外的新Activity我的logcat上有错误我的日志:04-1912:59:17.654:D/AndroidRuntime(18135):ShuttingdownVM04-1912:59:17.654:W/dalvikvm(18135):threadid=1:threadexitingwithuncaughtexception(group=0x4001d878)04-1912:59:17.684:E/AndroidRuntime(18135):FATALEXCEPTION:main04-1912:59:17.684:E/AndroidRunt

java - Windows 上 Tomcat 上的 Log4j2 产生警告 "unable to instantiate org.fusesource.jansi.WindowsAnsiOutputStream"

我在Tomcat8上部署了一个Web应用程序。我的开发环境是Windows7x64上的Eclipse(Luna)。我刚刚在我的代码中集成了log4j2。当我启动Tomcat时,我看到以下警告:WARNUnabletoinstantiateorg.fusesource.jansi.WindowsAnsiOutputStream我进行了广泛的谷歌搜索,但找不到与我的问题相关的任何问题。我确实看到该类应该为日志文件添加颜色。我对此功能不感兴趣。log4j配置如下 最佳答案 好的,在深入log4j2代码后,我发现了一个需要指定的隐藏运行时参

redis - Flink Redis 连接器 : update getCommandDescription() after instantiation

我正在使用FLinkRedisSink向Redis写入一些计数器。https://ci.apache.org/projects/flink/flink-docs-release-1.1/apis/streaming/connectors/redis.html我想为每一天创建一个HASH,但是当实例化接收器时,接收器的getCommandDescription()只会被调用一次。有没有办法让它更新?@OverridepublicRedisCommandDescriptiongetCommandDescription(){longmillis=DateTime.now(DateTimeZo