草庐IT

lang_createtable

全部标签

android - 迁移到 AndroidX 后,启动时出现异常 : java. lang.ClassNotFoundException : "Didn' t find class androidx. core.app.CoreComponentFactory"

迁移到AndroidX后,我在启动时遇到以下异常:LoadedApk:UnabletoinstantiateappComponentFactoryjava.lang.ClassNotFoundException:Didn'tfindclass"androidx.core.app.CoreComponentFactory"onpath:DexPathList[[],nativeLibraryDirectories=[/data/app/com.apps.entertainmentsolutions.offhole-yUKw5A4ysDVrPyO-DpnhKg==/lib/arm64,/s

安卓 java.lang.OutOfMemoryError

当我从网站下载大数据时,我得到这个错误信息:I/global(20094):DefaultbuffersizeusedinBufferedInputStreamconstructor.Itwouldbebettertobeexplicitifan8kbufferisrequired.D/dalvikvm(20094):GCfreed6153objects/3650840bytesin335msI/dalvikvm-heap(20094):ForcingcollectionofSoftReferencesfor3599051-byteallocationD/dalvikvm(20094)

java - 获取错误 java.lang.ArrayIndexOutOfBoundsException : too much data for RSA block

我有私有(private)pemkey文件,我正在使用该文件对数据进行签名和加密。签名工作正常,我也可以在另一个平台上进行验证,但是在加密数据时,我收到以下错误:04-0409:55:51.821:E/AndroidRuntime(2725):FATALEXCEPTION:Thread-10204-0409:55:51.821:E/AndroidRuntime(2725):java.lang.ArrayIndexOutOfBoundsException:toomuchdataforRSAblock04-0409:55:51.821:E/AndroidRuntime(2725):atco

Exception in thread “main“ java.lang.IllegalStateException: Cannot load configuration class

Exceptioninthread"main"java.lang.IllegalStateException:Cannotloadconfigurationclass:com.itcast.config.SpringConfiguration atorg.springframework.context.annotation.ConfigurationClassPostProcessor.enhanceConfigurationClasses(ConfigurationClassPostProcessor.java:414) atorg.springframework.context.annot

android - 地理围栏(Android 示例应用程序)java.lang.ClassNotFoundException MainActivity

我有一个ASUSEeeTab(TransformerPrimeTF201Androidv4.1.1)。我正在阅读有关地理围栏的API,并将下面的示例应用程序下载到我的设备上=>http://developer.android.com/training/location/geofencing.html.但是当我打开它时它会终止。我在AndroidManifest.xml文件中设置了目标sdk=16日志猫06-0419:39:34.176:E/AndroidRuntime(2596):FATALEXCEPTION:main06-0419:39:34.176:E/AndroidRuntime

android - java.lang.SecurityException : Not allowed to start service Intent 错误

我从googleplay的用户那里得到以下异常:java.lang.SecurityException:NotallowedtostartserviceIntent{act=com.google.android.c2dm.intent.REGISTERpkg=com.google.android.gsf(hasextras)}withoutpermissioncom.google.android.c2dm.permission.RECEIVE我将我的应用程序上传到市场已经8个月了,这是我第一次遇到此异常。谁能告诉我,这个异常是怎么突然来的,这是怎么回事。我在网上搜索但找不到任何东西。请

android - 在 onLongClickListener 中调用 MediaRecorder.start 时在 android.media.MediaRecorder.start 处出现 java.lang.IllegalStateException

我想在按住按钮时使用MediaRecorder开始录制语音消息。尝试在onLongClickListener中开始录制时出现IllegalStateException。如堆栈跟踪中所述,我收到的错误位于第219行:recorder.start()为什么会这样?btnSendVoice.setOnLongClickListener(newOnLongClickListener(){@OverridepublicbooleanonLongClick(Viewview){isVoiceButtonHeld=true;startRecording();returnfalse;}});btnSe

android - java.lang.NoClassDefFoundError : com. acme.R$layout 引用 android 库

我有一个Android库项目,其中包含一个自定义身份验证器和一个为身份验证器提供登录屏幕的Activity。当直接包含在我的主应用程序中时,身份验证器工作正常,但我想将身份验证器放入一个单独的android库中。当我运行引用这个库的主要android应用程序项目时,当它使用R.layout调用setContentView时,我在Activity的onCreate方法中得到一个'java.lang.NoClassDefFoundError:com.acme.R$layout'。我正在使用androidgradle构建。我已经将库发布到本地Maven存储库,并且主项目似乎正在构建,没有任何

android - java.lang.IllegalStateException : Can not perform this action after onSaveInstanceState, FragmentTabHost 问题

MainActivity中有一个FragmentTabHost,并且有五个Fragment添加到这个FragmentTabHost。这是初始化代码protectedvoidonCreate(BundlesavedInstanceState){mFragmentManager=getSupportFragmentManager();mTabHost=(FragmentTabHost)findViewById(android.R.id.tabhost);mTabHost.setup(this,mFragmentManager,android.R.id.tabcontent);//Homem

android - startService() 抛出 java.lang.IllegalStateException

从我的Activity的onCreate(),我正在尝试通过以下代码启动服务:Intentintent=newIntent();intent.setClassName(SERVICE_PKG_NAME,SERVICE_NAME);context.startService(intent);//context=MainActivity.this但是,我收到以下异常:java.lang.IllegalStateException:NotallowedtostartserviceIntent(service-name):appisinbackground知道这可能是什么原因吗?现在坚持了几个小