android 开发加载项目报resizing partition e2fsck failed 3C
 [2017-07-14 09:56:40 - FishJoy_final] ------------------------------
[2017-07-14 09:56:40 - FishJoy_final] Android Launch!
[2017-07-14 09:56:40 - FishJoy_final] adb is running normally.
[2017-07-14 09:56:40 - FishJoy_final] Performing fishjoy.control.menu.MainMenu activity launch
[2017-07-14 09:56:40 - FishJoy_final] Automatic Target Mode: launching new emulator with compatible AVD 'test1'
[2017-07-14 09:56:40 - FishJoy_final] Launching a new emulator with Virtual Device 'test1'
[2017-07-14 09:56:41 - Emulator] emulator: WARNING: userdata partition is resized from 550 M to 2048 M
[2017-07-14 09:56:41 - Emulator] 
[2017-07-14 09:56:41 - Emulator] Hax is enabled
[2017-07-14 09:56:41 - Emulator] Hax ram_size 0x80000000
[2017-07-14 09:56:41 - Emulator] HAX is working and emulator runs in fast virt mode.
[2017-07-14 09:56:41 - Emulator] ERROR: resizing partition e2fsck failed with exit code 1
[2017-07-14 09:56:43 - Emulator] audio: Failed to create voice `goldfish_audio_in'
[2017-07-14 09:56:43 - Emulator] qemu-system-i386.exe: warning: opening audio input failed
[2017-07-14 09:56:43 - FishJoy_final] New emulator found: emulator-5554
[2017-07-14 09:56:43 - Emulator] emulator: Listening for console connections on port: 5554
[2017-07-14 09:56:43 - FishJoy_final] Waiting for HOME ('android.process.acore') to be launched...
[2017-07-14 09:56:43 - Emulator] emulator: Serial number of this emulator (for ADB): emulator-5554
0

1个回答

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
新建liferay项目报BUILD FAILED错误
新建liferay项目报BUILD FAILED错误
Android项目之本地图片加载
Android项目之本地图片加载
新建Android项目:Failed to execute aapt
#########Android Studio版本信息rnAndroid Studio 3.1.2rnBuild #AI-173.4720617, built on April 14, 2018rnJRE: 1.8.0_152-release-1024-b02 amd64rnJVM: OpenJDK 64-Bit Server VM by JetBrains s.r.ornWindows 10 10.0rnrnBuild-TOOLs版本:27.0.3rnPlatform-tools版本:27.0.1rnSDK Platform版本:27(Android 8.1.0)和25(Android 7.1.1)rn手机型号:小米5c,Android版本:7.1.2rnrn直接build没有问题,但是插上我手机进行run的时候报错:Failed to execute aaptrn但是当我把25版本的SDK Platform删除时,就能在手机上正常运行,但是会出现提示:rn[img=https://img-bbs.csdn.net/upload/201805/08/1525757672_686609.png][/img]rnrn具体错误信息:rn[code=html]org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexWithInstantRunDependenciesApkForDebug'.rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)rn at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)rn at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)rn at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)rn at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)rn at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)rn at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)rn at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)rn at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)rn at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)rn at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)rn at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)rn at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)rn at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)rn at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)rn at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: java.lang.RuntimeException: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aaptrn at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)rn at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)rn at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)rn at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)rn at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)rn at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)rn at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)rn at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)rn ... 32 morernCaused by: com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: Failed to execute aaptrn at com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:152)rn at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)rn at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)rn at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)rn ... 48 morernCaused by: com.android.ide.common.process.ProcessException: Failed to execute aaptrn at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:809)rn at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:797)rn at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:375)rn at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApkResourcesAp(InstantRunSplitApkBuilder.java:323)rn at com.android.build.gradle.internal.transforms.InstantRunSplitApkBuilder.generateSplitApk(InstantRunSplitApkBuilder.java:211)rn at com.android.build.gradle.internal.transforms.InstantRunDependenciesApkBuilder.transform(InstantRunDependenciesApkBuilder.java:149)rn ... 51 morernCaused by: java.util.NoSuchElementExceptionrn at com.google.common.collect.AbstractIndexedListIterator.next(AbstractIndexedListIterator.java:80)rn at com.google.common.collect.Iterators.getOnlyElement(Iterators.java:315)rn at com.google.common.collect.Iterables.getOnlyElement(Iterables.java:263)rn at com.android.builder.internal.aapt.v1.AaptV1.makePackageProcessBuilder(AaptV1.java:202)rn at com.android.builder.internal.aapt.AbstractProcessExecutionAapt.makeValidatedPackage(AbstractProcessExecutionAapt.java:67)rn at com.android.builder.internal.aapt.AbstractAapt.link(AbstractAapt.java:34)rn at com.android.builder.core.AndroidBuilder.processResources(AndroidBuilder.java:807)rn ... 56 morernrn[/code]rnrn求各位帮忙看下,刚接触Android,这个问题搞了快一个星期才能运行,想知道到底是什么原因。。。rn
e2fsck 系统出问题了,可用.e2fsck用于检查ext3文件系
系统出问题了,可用.e2fsck用于检查ext3文件系统。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
junit测试报Failed to load ApplicationContext
需要测试src里面的service、action等;新建了个src文件夹命名为“testCase”,和src同级;applicationContext.xml文件在src里面,不太清楚除了需要加载这个配置文件还需要啥,看了网上例子用了如下的代码:rn@ContextConfiguration(locations="classpath:applicationContext.xml") rnrn执行test报:rnlog4j:WARN No such property [maxFileSize] in org.apache.log4j.DailyRollingFileAppender.rnlog4j:WARN No such property [maxBackupIndex] in org.apache.log4j.DailyRollingFileAppender.rn2013-09-24 16:56:39 [org.springframework.test.context.TestContextManager.retrieveTestExecutionListeners(TestContextManager.java:185)]-[INFO] @TestExecutionListeners is not present for class [class loginTest]: using defaults.rn2013-09-24 16:56:39 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)]-[INFO] Loading XML bean definitions from class path resource [applicationContext.xml]rn2013-09-24 16:56:39 [org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:315)]-[INFO] Loading XML bean definitions from class path resource [sdmob-gis.xml]rn2013-09-24 16:56:39 [org.springframework.context.support.AbstractApplicationContext.prepareRefresh(AbstractApplicationContext.java:456)]-[INFO] Refreshing org.springframework.context.support.GenericApplicationContext@1bd0dd4: startup date [Tue Sep 24 16:56:39 CST 2013]; root of context hierarchyrn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'alarmInfoDao' and 'com.nr.sd.mob.dao.AlarmInfoDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'attemperGraphDao' and 'com.nr.sd.mob.dao.AttemperGraphDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'curveDao' and 'com.nr.sd.mob.dao.CurveDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'damCtrlFloodDao' and 'com.nr.sd.mob.dao.DamCtrlFloodDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'mobMenuDao' and 'com.nr.sd.mob.dao.MobMenuDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'mobUserDao' and 'com.nr.sd.mob.dao.MobUserDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.checkCandidate(MapperScannerConfigurer.java:453)]-[WARN] Skipping MapperFactoryBean with name 'reportSrhDao' and 'com.nr.sd.mob.dao.ReportSrhDao' mapperInterface. Bean already defined with the same name!rn2013-09-24 16:56:40 [org.mybatis.spring.mapper.MapperScannerConfigurer$Scanner.doScan(MapperScannerConfigurer.java:397)]-[WARN] No MyBatis mapper was found in 'com.nr.sd.mob.dao' package. Please check your configuration.rn2013-09-24 16:56:40 [org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:555)]-[INFO] Pre-instantiating singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@530cf2: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,weatherImageAction,monitorAction,weatherImageJobDetail,monitorJobDetail,simpleTrigger,monitorTrigger,scheduleFactory,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,mobUserDao,mobUserLoginAction,mobUserService,mobMenuDao,mobMenuAction,mobMenuService,damCtrlFloodDao,damCtrlFloodService,DamConfigAction,DamQueryAction,WaterRegimeAction,SingleFetchAction,QueryFetchAction,curveDao,curveService,CurveQueryAction,attemperRuleService,AttemperRuleAction,attemperGraphDao,attemperGraphService,AttemperGraphAction,alarmInfoDao,alarmInfoAction,alarmInfoService,TopologyGraphAction,HydroOverviewAction,TestInterfaceAction,reportSrhDao,reportSrhAction,reportSrhService,readHyDispXmlAction,readHyDispXmlService,LonlatAction,StationAction,readHyDispRFLXmlAction,readHyDispRFLXmlService,getZoomLevelAction,getZoomLevelService,querySubStreamAction,querySubStreamService,querySubStreamDao,getSubStreamRFLAction,getIsoLinePicAction,getIsoLinePicService,getIsoLinePicDao]; root of factory hierarchyrn2013-09-24 16:56:40 [org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.destroySingletons(DefaultSingletonBeanRegistry.java:422)]-[INFO] Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@530cf2: defining beans [org.springframework.context.annotation.internalConfigurationAnnotationProcessor,org.springframework.context.annotation.internalAutowiredAnnotationProcessor,org.springframework.context.annotation.internalRequiredAnnotationProcessor,org.springframework.context.annotation.internalCommonAnnotationProcessor,weatherImageAction,monitorAction,weatherImageJobDetail,monitorJobDetail,simpleTrigger,monitorTrigger,scheduleFactory,dataSource,sqlSessionFactory,org.mybatis.spring.mapper.MapperScannerConfigurer#0,mobUserDao,mobUserLoginAction,mobUserService,mobMenuDao,mobMenuAction,mobMenuService,damCtrlFloodDao,damCtrlFloodService,DamConfigAction,DamQueryAction,WaterRegimeAction,SingleFetchAction,QueryFetchAction,curveDao,curveService,CurveQueryAction,attemperRuleService,AttemperRuleAction,attemperGraphDao,attemperGraphService,AttemperGraphAction,alarmInfoDao,alarmInfoAction,alarmInfoService,TopologyGraphAction,HydroOverviewAction,TestInterfaceAction,reportSrhDao,reportSrhAction,reportSrhService,readHyDispXmlAction,readHyDispXmlService,LonlatAction,StationAction,readHyDispRFLXmlAction,readHyDispRFLXmlService,getZoomLevelAction,getZoomLevelService,querySubStreamAction,querySubStreamService,querySubStreamDao,getSubStreamRFLAction,getIsoLinePicAction,getIsoLinePicService,getIsoLinePicDao]; root of factory hierarchyrn2013-09-24 16:56:40 [org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:324)]-[ERROR] Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@814013] to prepare test instance [loginTest@195d4fe]rnjava.lang.IllegalStateException: Failed to load ApplicationContextrn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:308)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.injectDependencies(DependencyInjectionTestExecutionListener.java:109)rn at org.springframework.test.context.support.DependencyInjectionTestExecutionListener.prepareTestInstance(DependencyInjectionTestExecutionListener.java:75)rn at org.springframework.test.context.TestContextManager.prepareTestInstance(TestContextManager.java:321)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.createTest(SpringJUnit4ClassRunner.java:220)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner$1.runReflectiveCall(SpringJUnit4ClassRunner.java:301)rn at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.methodBlock(SpringJUnit4ClassRunner.java:303)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:240)rn at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:47)rn at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231)rn at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:60)rn at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:229)rn at org.junit.runners.ParentRunner.access$000(ParentRunner.java:50)rn at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:222)rn at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61)rn at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30)rn at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70)rn at org.junit.runners.ParentRunner.run(ParentRunner.java:300)rn at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:180)rn at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)rn at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)rn at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'weatherImageAction' defined in class path resource [applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.nr.sd.mob.action.WeatherImageAction]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionrn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:965)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:911)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:580)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:84)rn at org.springframework.test.context.support.AbstractGenericContextLoader.loadContext(AbstractGenericContextLoader.java:1)rn at org.springframework.test.context.TestContext.loadApplicationContext(TestContext.java:280)rn at org.springframework.test.context.TestContext.getApplicationContext(TestContext.java:304)rn ... 25 morernCaused by: org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.nr.sd.mob.action.WeatherImageAction]: Constructor threw exception; nested exception is java.lang.NullPointerExceptionrn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)rn at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:74)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean(AbstractAutowireCapableBeanFactory.java:958)rn ... 39 morernCaused by: java.lang.NullPointerExceptionrn at com.nr.sd.mob.service.impl.WeatherImageServiceImpl.readImageXML(WeatherImageServiceImpl.java:261)rn at com.nr.sd.mob.service.impl.WeatherImageServiceImpl.initFormate(WeatherImageServiceImpl.java:83)rn at com.nr.sd.mob.service.impl.WeatherImageServiceImpl.(WeatherImageServiceImpl.java:36)rn at com.nr.sd.mob.action.WeatherImageAction.(WeatherImageAction.java:26)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)rn at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)rn at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)rn at java.lang.reflect.Constructor.newInstance(Constructor.java:513)rn at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)rn ... 41 more
dwr报failed to read input
dwr偶尔会报failed to read input。rn换台电脑或过段时间就能用了。rn这个是dwr框架的问题。rn有什么办法能解决这个问题吗
android 项目 开发 Demo
android 项目 开发 demo <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.demo" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="15" /> &lt;!-- 获取手机号码的权限 --&gt; <uses-permission android:name="android.permission.READ_PHONE_STATE" /> &lt;!-- 获取电话簿号码的权限 --&gt; <uses-permission android:name="android.permission.READ_CONTACTS" /> <application android:icon="@drawable/ic_launcher" android:label="@string/app_name" android:theme="@style/AppTheme" > <activity android:name=".MainActivity" android:label="@string/title_activity_main" android:theme="@style/Theme.Foo" > <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> </intent-filter> </activity> <activity android:name=".MainzhuliActivity" android:label="MainzhuliActivity" > </activity> <activity android:name=".MainCenterActivity" android:label="MainCenterActivity" > </activity> <activity android:name=".InformationActivity" android:label="@string/title_activity_information" > </activity> <activity android:name=".TradingActivity" android:label="@string/title_activity_trading" > </activity> <activity android:name=".SystemActivity" android:label="@string/title_activity_system" > </activity> &lt;!-- Optional(自选) --&gt; <activity android:name=".optional.OptionalActivity" android:label="@string/title_activity_optional" > </activity>
kotlin开发Android项目
Kotlin, on the other hand, is a new but stable language that can run on all Android devices and solve many issues that Java cannot. It brings lots of proven programming concepts to the Android development table. It is a great language that makes a developer's life much easier and allows to produce more secure, expressive, and concise code
android项目mvn开发
项目主页 http://code.google.com/p/maven-android-plugin/ 关键如果是WINDOWS的话要设置ANDROID_HOME:SDK所在的位置 然后在PATH中增加 %ANDROID_HOME%\tools %ANDROID_HOME%\platform-tools 然后在需要MVN的项目下运行 mvn clean package ...
android微博开发项目
android开发教科书中的微博开发的源代码 供大家参考 谢谢大家
Android 开发项目大全
Android入门项目最好的选择,希望对大家有用,加油!!!
Android项目JNI开发
欢迎使用Markdown编辑器写博客本Markdown编辑器使用StackEdit修改而来,用它写博客,将会带来全新的体验哦: Markdown和扩展Markdown简洁的语法 代码块高亮 图片链接和图片上传 LaTex数学公式 UML序列图和流程图 离线写博客 导入导出Markdown文件 丰富的快捷键 快捷键 加粗 Ctrl + B 斜体 Ctrl + I 引用 Ctrl
开发android项目设计思路
要练习做一个android项目,才开始就难住了我,现在自己已经想好基本有哪些功能。但是,下一步该怎么做呢?设计思路是什么样的?用什么数据库比较好?java wb里用过mvc,那么android也有类似的东西吗?也需要考虑框架之类的东西吗?求高人相助。
Android项目 开发详解
全书以一个Android应用程序开发案例为主线,介绍了整个Android项目开发的过程。在内容的编排方面,为突出项目编程方法与编程思路这条主线,将Android组件的使用分配到每一个功能界面中讲解。本书涵盖了Android前端界面开发、Activity java程序的开发以及ASP后台技术开发等内容,强调了Android与后台数据通信技术、XML解析技术、数据存储技术以及与Android前端配套的ASP后台技术的实现细节。
android相机开发setParameters failed错误
最近写了一个自定义相机,在天宇,摩托上面做测试都没有问题,可是到了htc上就不行了,报setParameters failed错误,不知道怎么回事?那位大哥帮帮忙?谢谢啊
Resizing 的问题
我将主窗口分为左边一格,右边两格(分上下)。我想控制主窗口最小为300*200(比如)rn且右边下面的窗格的height为固定(比如100),可效果不如意,请教如何实现。rn 我的代码如下:rnvoid CMainFrame::OnSizing(UINT fwSide, LPRECT pRect) rnrn CFrameWnd::OnSizing(fwSide, pRect);rn rn // TODO: Add your message handler code herernrn int nWidth=(pRect->right)-(pRect->left);rn int nHeight=(pRect->bottom)-(pRect->top);rn rn m_wndSplitter.SetColumnInfo(0,100,100);rn m_wndSplitter.SetColumnInfo(1,nWidth-100,0);rn m_wndSplitter.RecalcLayout();rnrn m_wndSplitterRight.SetRowInfo(0,nHeight-100,100);rn m_wndSplitterRight.SetRowInfo(1,100,100);rn m_wndSplitterRight.RecalcLayout();rn
partition
partition
使用android遇到的问题报failed to open zip file错误
在android studio导入项目的时候出现了 failed to open zip file的错误, 根据网上的说法,定位到了,grale--->wrapper---->gradle-wrapper.properties的配置文件,在文件中, 关于distributionUrl的配置,发现我的android studio中是  https\://........ 果段的把https改为
Android使用MediaRecorder的stop方法报"stop failed"错误的解决方案
一、 问题描述 如下所示,调用recorder.stop()时抛出异常: Caused by: java.lang.RuntimeException: stop failed. at android.media.MediaRecorder.stop(Native Method) 二、 分析原因 start和stop间隔时间太短: 三、 解决方案 调用stop...
Android模拟器中启动应用报java.lang.UnsatisfiedLinkError: dlopen failed:
开发环境:AS + Genymotion模拟器,rn问题重现步骤:rnStep1:启动模拟器rnStep2:运行APPrn问题现象:APP在模拟器中成功安装,但每次双击打开时,就报以下错误。rnrn着急,求大侠支招,在线等! rnrn03-01 22:11:50.372 4014-4074/com.shuyin.parking E/AndroidRuntime: FATAL EXCEPTION: Thread-155rn Process: com.shuyin.parking, PID: 4014rn java.lang.UnsatisfiedLinkError: dlopen failed: "/data/app/com.shuyin.parking-2/lib/arm/libmsc.so" has unexpected e_machine: 40rn at java.lang.Runtime.loadLibrary(Runtime.java:372)rn at java.lang.System.loadLibrary(System.java:1076)rn at com.iflytek.msc.MSC.(Unknown Source)rn at com.iflytek.cloud.b.c.a.a(Unknown Source)rn at com.iflytek.cloud.b.c.b.e(Unknown Source)rn at com.iflytek.cloud.b.b.b.run(Unknown Source)rn at java.lang.Thread.run(Thread.java:818)
android模拟器添加串口,报Failed CreateFile (2)
在android模拟器上添加串口,在命令行下运行指令:rn emulator @Android_TV_1080p_API_25 -qemu -serial COM11rnrn出现以下错误:rnrnemulator: WARNING: encryption is offrnHax is enabledrnHax ram_size 0x60000000rnHAX is working and emulator runs in fast virt mode.rnE:\Android_SDK\AndroidStudio\tools\..\emulator\qemu\windows-x86_64\qemu-system-i386.exe: -serial COM11: Failed CreateFile (2)rnE:\Android_SDK\AndroidStudio\tools\..\emulator\qemu\windows-x86_64\qemu-system-i386.exe:-serial COM11: could not connect serial device to character backend 'COM11'rnrn这是什么问题啊?rn请各位大神帮帮忙,谢谢,谢谢!rn
partition table 删除 partition
创建一个partition表:rn create table obj rn ( id number, name char(10))rn partition by hash(id)rn ( partition part1, partition part2);rnrn删除obj表:rn drop table obj;rnrn但是,此时obj的两个分区part1、part2任然存在。rnrn请问,此时 我应该如何删除part1和part2?
maven加载本地报
数据传输格式 数据发送编码格式 发送数据 真实数据-&amp;amp;gt;加密得到加密数据-&amp;amp;gt;压缩得到压缩数据-&amp;amp;gt;整理格式得到编码的数据。 接收数据 得到的数据-&amp;amp;gt;解除格式得到压缩数据-&amp;amp;gt; 解压缩得到体积变大的加密数据 -&amp;amp;gt;解密得到真实数据 ...
加载properties文件报空指针
public class DB rn private Connection conn = null;rn private Properties prop = null;rn InputStream info = null; //InputStream 对象 ; //InputStream 对象 rn rn public Connection getConnection()rn String driverclass,dburl,user,password;rn prop = new Properties(); //构建properties对象rn //java.lang.Object.getClass(),将jdbc.properties文件内容赋予输入流对象 rn info = getClass().getResourceAsStream("conf/jdbc.properties");rnrn try rn prop.load(info); //加载输入流对象内容rn driverclass = prop.getProperty("driverclass");rn dburl = prop.getProperty("dburl");rn user = prop.getProperty("user");rn password = prop.getProperty("password");rn System.out.println(driverclass+dburl+user+password);rn rn Class.forName(driverclass);//加载驱动rn conn=DriverManager.getConnection(dburl,user,password);//创建数据库connection对象rn catch (IOException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (ClassNotFoundException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn catch (SQLException e) rn // TODO Auto-generated catch blockrn e.printStackTrace();rn rn return conn;rn rn rn错误[code=java][/code]信息:rn严重: Servlet.service() for servlet AccountServlet threw exceptionrnjava.lang.NullPointerExceptionrn at java.util.Properties$LineReader.readLine(Properties.java:418)rn at java.util.Properties.load0(Properties.java:337)rn at java.util.Properties.load(Properties.java:325)rn at com.etop.topebus.common.DB.getConnection(DB.java:26)rn at com.etop.topebus.dao.AccountDao.accountInfo(AccountDao.java:40)rn at com.etop.topebus.control.AccountServlet.doPost(AccountServlet.java:57)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)rn at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)rn at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)rn at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)rn at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)rn at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)rn at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)rn at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)rn at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)rn at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)rn at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)rn at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)rn at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)rn at java.lang.Thread.run(Thread.java:619)rn
android Studio 2.2编译项目报空指针异常
原本在android studio 2.0 上运行的项目,在android studio 2.2上 报空指针异常错误Error:Execution failed for task ':mainActivity:transformNative_libsWithStripDebugSymbolForDebug'. > java.lang.NullPointerException (no error me
Android Studio项目报V4:24.0.0问题
看图吧:![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329441_649111.png)n这是问题,配置文件:n![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329422_977942.png)nSDK:n![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329462_705883.png)n![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329473_350915.jpg)nJar:n![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329498_34366.png)n![图片说明](https://img-ask.csdn.net/upload/201610/13/1476329511_908523.jpg)n
android的项目需要报overlaps错误
  android项目新建的时候需要一个单独的文件夹,否则会报错,原因如下: The resource APIs are a bit tricky here.  When you create a new project,you should specify the project location as null if you want it to go inthe default loca...
Android Studio项目R文件报红
这里是解决打开别人Android studio3.3.1项目后,R文件报红,但是项目可以正常运行的问题: 1、将自己的Android studio升级到3.3.1 2、将项目根目录下buildgradle中 classpath 'com.android.tools.build:gradle:3.3.1' 向下降级 classpath 'com.android.tools.build:...
Android studio 项目无法运行--项目报红X或项目报问号
导致项目无法运行的几种原因:   studio的更新  非正常关闭studio,如 studio未关闭时重启电脑,会导致stuio不能保存资源文件 有的时候就是网络问题,不能正常的加载一些项目需要的资源文件 不能运行时项目的状态:     解决方案:   方案1: File--&amp;gt;InvalidateCashs/Restar...--&amp;gt;Invalidate and Rest...
sdk开发项目心得
这是博主第一次sdk开发工作,是开发过程中的感悟和心得,写得不好,还请指正公司背景是一家专门从事sdk开发服务的公司,这次楼主接到sdk开发的任务,项目经理告知说可以依靠之前公司的sdk进行修修改改就可以完成任务,楼主就这么做了,可是做到后期项目需求变化发现公司之前的sdk根本不能用了,但是项目也进行了一大半,所有就在之前的代码框架下完成,到项目后期功能全部完成后,才发现有大问题; sdk框架前期
android 项目 开发 总述 快速入门
全面的介绍android程序总体,细述各个模块功能!
Android APP 开发项目框架搭建
每个项目都有自己的框架,大同小异而已,直接奔主题吧。 首先看包的创建 一种根据功能创建,一种是模块,项目不大的话建议根据功能创建,大的话建议模块创建。 然后得有个baseactivity吧, 得有个basefragment吧, 得有个自定义application吧, 得有个全局处理异常吧, 得有个日志打印或者写入txt吧, 或者传到邮箱吧。 然后得有几个jar包吧,百度地图啊
面向API开发Android项目
NULL 博文链接:https://jinyike.iteye.com/blog/791803
KotLin开发Android练手项目
简介 2018-10-18 开始,此项目使用Kotlin开发,搜罗的网上的免费API开发。主要目的: 学习了解kotlin语言 练习使用kotlin开发Android 练习kotlin中各种类以及框架的封装 练习kotlin-Android的组件化开发 学习图片处理框架 学习视频处理 尝试kotlin中MVP MVVM等架构实现(后续可能创建新的分支) 练习kotlin中数据库封装 kotlin...
Kotlin开发android项目之错误集
1.使用Retrofit2.0时,报了以下错误Error:(33, 88) Cannot access class 'okhttp3.OkHttpClient'. Check your module classpath for missing or conflicting dependencies解决方法:可以在报错的地方添加@Suppress(&quot;MISSING_DEPENDENCY_CLASS&quot;...
android 开发qq聊天项目
实现了qq聊天功能,和添加好友功能,私聊,群聊功能
Android开屏广告开发项目
Android开屏广告开发代码
Android组件化开发项目介绍
随着Android项目功能的不断增加,组件化开发已经逐渐被重视起来,组件化开发的好处是可以把各个模块拆开来单独开发,并且每个模块都可以拿来单独运行,这样极大的降低了开发的耦合度,有利于团队开发。 如果觉得有用就给个star吧module ...
Android 开发一、项目工具类
首先,介绍第一个项目工具类,这个工具类是用于生成项目文件或文件夹。话不多说,直接上代码。 package com.example.wmk.utils; import android.os.Environment; import java.io.File; /** * Created by 老王 on 2016/12/1. */ public class ProjectUtils {
Android failed to export application
在用手机调试android程序时出现aapt.exe停止工作,取消后能在手机上完美运行,后来在打包时出现以下画面,无法打包成功,但是能成功打包eclipse上其他程序。rn尝试过的方法:rn1、“Preferences→Android→Build→Build optput选择Silentrn2、重启eclipse-clean-Fix,且无错误提示rn3、多次查看资源文件,没发现命名以及资源内容错误rn[img=https://img-bbs.csdn.net/upload/201406/15/1402800659_799107.jpg][/img]rn[img=https://img-bbs.csdn.net/upload/201406/15/1402800669_64037.jpg][/img]
相关热词 c# 线程顺序 c#昨天当前时间 c# 多进程 锁 c#mysql图片存取 c# ocx 委托事件 c# 读取类的属性和值 c# out 使用限制 c#获取url的id c#怎么进行分页查询 c# update 集合