问题描述
有问题我而最新的SDK修订2更新后建立我的项目(对不起,我不remeber版本号)。我成功地之前运行code。我不认为这是我的project.I任何错误经常会得到错误信息为IDE内部错误是什么该怎么做。请帮助thanks.Required codeS下面给出
应用/的build.gradle:
应用插件:'com.android.application
应用插件:'com.google.gms.google的服务。安卓{
compileSdkVersion 23
buildToolsVersion23.0.1 defaultConfig {
的applicationIDio.sleeko.board
15的minSdkVersion
targetSdkVersion 23
版本code 1
的versionName1.0
multiDexEnabled真
} buildTypes {
发布 {
minifyEnabled假
proguardFiles getDefaultProguardFile('proguard的-android.txt'),'proguard-rules.pro
}
}
}依赖{
编译文件树(导演:'库',包括:['的* .jar'])
编译('cn.trinea.android.view.autoscrollviewpager:Android的自动滚动视图寻呼机:1.1.2'){
排除模块:支持-V4
}
编译com.android.support:recyclerview-v7:23.0.1 编译('com.github.nkzawa:socket.io客户端:0.6.0'){
排除组:org.json',模块:JSON
}//编制项目(':Emojicon') 编译com.android.support:appcompat-v7:23.1.0
编译com.android.support:design:23.1.0
编译com.google.android.gms:播放服务身份:8.1.0
编译com.google.android.gms:发挥服务加:8.1.0
编译com.android.support:recyclerview-v7:23.1.0
编译me.relex:circleindicator:1.1.5@aar
编译de.greenrobot:eventbus:2.4.0
编译com.android.support:cardview-v7:23.1.0
编译com.google code.gson:GSON:2.4
编译com.github.rahatarmanahmed:circularprogressview:2.3.2
编译com.squareup.picasso:毕加索:2.5.2
编译com.github.traex.rippleeffect:库:1.3'
编译com.alexbbb:uploadservice:1.4
编译com.github.satyan:糖:1.3'
编译com.mikhaellopez:circularimageview:2.0.2
编译com.facebook.android:facebook-android-sdk:4.7.0}
留言摇篮构建:
信息:摇篮任务[:应用:generateDebugSources,:应用程序:generateDebugAndroidTestSources]
:应用程序:preBuild UP-TO-DATE
:应用程序:preDebugBuild UP-TO-DATE
:应用:checkDebugManifest
:应用程序:preReleaseBuild UP-TO-DATE
:应用程序:prepareComAlexbbbUploadservice14Library UP-TO-DATE
:应用程序:prepareComAndroidSupportAppcompatV72310Library UP-TO-DATE
:应用程序:prepareComAndroidSupportCardviewV72310Library UP-TO-DATE
:应用程序:prepareComAndroidSupportDesign2310Library UP-TO-DATE
:应用程序:preDebugAndroidTestBuild UP-TO-DATE
:应用程序:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:应用程序:prepareComAndroidSupportRecyclerviewV72310Library UP-TO-DATE
:应用程序:prepareComAndroidSupportSupportV42310Library UP-TO-DATE
:应用程序:prepareComFacebookAndroidFacebookAndroidSdk470Library UP-TO-DATE
:应用程序:prepareComGithubRahatarmanahmedCircularprogressview232Library UP-TO-DATE
:应用程序:prepareComGithubSatyanSugar13Library UP-TO-DATE
:应用程序:prepareComGithubTraexRippleeffectLibrary13Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesAds810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesAnalytics810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesBase810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesIdentity810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesMeasurement810Library UP-TO-DATE
:应用程序:prepareComGoogleAndroidGmsPlayServicesPlus810Library UP-TO-DATE
:应用程序:prepareComMikhaellopezCircularimageview202Library UP-TO-DATE
:应用程序:prepareMeRelexCircleindicator115Library UP-TO-DATE
:应用程序:prepareDebugDependencies
:应用:compileDebugAidl
:应用:compileDebugRenderscript
:应用:generateDebugBuildConfig UP-TO-DATE
:应用:generateDebugAssets UP-TO-DATE
:应用:mergeDebugAssets UP-TO-DATE
:应用:generateDebugResValues UP-TO-DATE
:应用:processDebugGoogleServices
:应用:generateDebugResources
:应用:mergeDebugResources
:应用:processDebugManifest UP-TO-DATE
:应用:processDebugResources失败
错误:执行失败的任务:应用程序:processDebugResources。
>在指数4
资料:构建失败
信息:总时间:24.365秒
信息:1错误
信息:0警告
信息:查看控制台完成输出
事件日志
下午3时26分52秒NullPointerException异常:无法设置项目的Android模块
在点击的NullPointerException它说,报告的细节与谷歌如下:
无法建立的Android模块项目bridgewith
显示java.lang.NullPointerException
在com.intellij.openapi.util.io.FileUtilRt.toSystemIndependentName(FileUtilRt.java:207)
在com.intellij.openapi.util.io.FileUtil.toSystemIndependentName(FileUtil.java:634)
在org.jetbrains.android.sdk.AndroidSdkUtils.getPlatformDir(AndroidSdkUtils.java:218)
在org.jetbrains.android.sdk.AndroidSdkUtils.getPlatformAndAddOnJars(AndroidSdkUtils.java:122)
在org.jetbrains.android.sdk.AndroidSdkUtils.getLibraryRootsForTarget(AndroidSdkUtils.java:156)
在org.jetbrains.android.sdk.AndroidSdkUtils.setUpSdk(AndroidSdkUtils.java:409)
在org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:359)
在org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:336)
在org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:327)
在org.jetbrains.android.sdk.AndroidSdkUtils.tryToCreateAndroidSdk(AndroidSdkUtils.java:617)
在com.android.tools.idea.gradle.customizer.android.AndroidSdkModuleCustomizer.customizeModule(AndroidSdkModuleCustomizer.java:92)
在com.android.tools.idea.gradle.customizer.android.AndroidSdkModuleCustomizer.customizeModule(AndroidSdkModuleCustomizer.java:48)
在com.android.tools.idea.gradle.service.AndroidGradleModelDataService.customizeModule(AndroidGradleModelDataService.java:330)
在com.android.tools.idea.gradle.service.AndroidGradleModelDataService.access$100(AndroidGradleModelDataService.java:88)
在com.android.tools.idea.gradle.service.AndroidGradleModelDataService$1.run(AndroidGradleModelDataService.java:159)
在com.intellij.openapi.command.WriteCommandAction $ Simple.run(WriteCommandAction.java:166)
在com.intellij.openapi.application.RunResult.run(RunResult.java:38)
在com.intellij.openapi.command.WriteCommandAction $ 2 $ 1.run(WriteCommandAction.java:114)
在com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
在com.intellij.openapi.command.WriteCommandAction $ 2.run(WriteCommandAction.java:111)
在com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
在com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
在com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:108)
在com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:80)
在com.android.tools.idea.gradle.service.AndroidGradleModelDataService.doImport(AndroidGradleModelDataService.java:136)
在com.android.tools.idea.gradle.service.AndroidGradleModelDataService.importData(AndroidGradleModelDataService.java:122)
在com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:132)
在com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:102)
在com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:141)
在com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:148)
在com.android.tools.idea.gradle.util.Projects $ 1 $ 1 $ 1.run(Projects.java:130)
在com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:328)
在com.android.tools.idea.gradle.util.Projects $ 1 $ 1.run(Projects.java:126)
在com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
在com.android.tools.idea.gradle.util.Projects $ 1.run(Projects.java:122)
在com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2369)
在com.android.tools.idea.gradle.util.Projects.populate(Projects.java:115)
在com.android.tools.idea.gradle.project.ProjectSetUpTask $ 2.run(ProjectSetUpTask.java:113)
在com.intellij.ide.startup.impl.StartupManagerImpl $ 7.run(StartupManagerImpl.java:369)
在java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
在java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
在java.awt.EventQueue.access $ 500(EventQueue.java:97)
在java.awt.EventQueue中的$ 3.run(EventQueue.java:709)
在java.awt.EventQueue中的$ 3.run(EventQueue.java:703)
在java.security.AccessController.doPrivileged(本机方法)
在java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:76)
在java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
在com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
在com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
在com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
在java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:201)
在java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
在java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
在java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
在java.awt.EventDispatchThread.run(EventDispatchThread.java:82)
试用最新版本的Android SDK中构建工具。
buildToolsVersion23.0.2
祝你好运。
I having problem while building my project after revision 2 update of the latest SDK(Sorry,I dont remeber the version number).I run the code succesfully before. I dont think there is any error in my project.I often get error message as "IDE internal error occured" is that anything to do with this. please help thanks.Required codes are given below
app/build.gradle:
apply plugin: 'com.android.application'
apply plugin: 'com.google.gms.google-services'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
defaultConfig {
applicationId "io.sleeko.board"
minSdkVersion 15
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile('cn.trinea.android.view.autoscrollviewpager:android-auto-scroll-view-pager:1.1.2') {
exclude module: 'support-v4'
}
compile 'com.android.support:recyclerview-v7:23.0.1'
compile('com.github.nkzawa:socket.io-client:0.6.0') {
exclude group: 'org.json', module: 'json'
}
// compile project(':Emojicon')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.android.support:design:23.1.0'
compile 'com.google.android.gms:play-services-identity:8.1.0'
compile 'com.google.android.gms:play-services-plus:8.1.0'
compile 'com.android.support:recyclerview-v7:23.1.0'
compile 'me.relex:circleindicator:1.1.5@aar'
compile 'de.greenrobot:eventbus:2.4.0'
compile 'com.android.support:cardview-v7:23.1.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.github.rahatarmanahmed:circularprogressview:2.3.2'
compile 'com.squareup.picasso:picasso:2.5.2'
compile 'com.github.traex.rippleeffect:library:1.3'
compile 'com.alexbbb:uploadservice:1.4'
compile 'com.github.satyan:sugar:1.3'
compile 'com.mikhaellopez:circularimageview:2.0.2'
compile 'com.facebook.android:facebook-android-sdk:4.7.0'
}
Message Gradle Build:
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugAndroidTestSources]
:app:preBuild UP-TO-DATE
:app:preDebugBuild UP-TO-DATE
:app:checkDebugManifest
:app:preReleaseBuild UP-TO-DATE
:app:prepareComAlexbbbUploadservice14Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72310Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72310Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2310Library UP-TO-DATE
:app:preDebugAndroidTestBuild UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72310Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42310Library UP-TO-DATE
:app:prepareComFacebookAndroidFacebookAndroidSdk470Library UP-TO-DATE
:app:prepareComGithubRahatarmanahmedCircularprogressview232Library UP-TO-DATE
:app:prepareComGithubSatyanSugar13Library UP-TO-DATE
:app:prepareComGithubTraexRippleeffectLibrary13Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAds810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAnalytics810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesAppindexing810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBase810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesBasement810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesIdentity810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesMeasurement810Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServicesPlus810Library UP-TO-DATE
:app:prepareComMikhaellopezCircularimageview202Library UP-TO-DATE
:app:prepareMeRelexCircleindicator115Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl
:app:compileDebugRenderscript
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:processDebugGoogleServices
:app:generateDebugResources
:app:mergeDebugResources
:app:processDebugManifest UP-TO-DATE
:app:processDebugResources FAILED
Error:Execution failed for task ':app:processDebugResources'.
> at index 4
Information:BUILD FAILED
Information:Total time: 24.365 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
Event log
3:26:52 PM NullPointerException: Failed to set up Android modules in project
On clicking NullPointerException it says to report to google with details as below:
Failed to set up Android modules in project 'bridgewith'
java.lang.NullPointerException
at com.intellij.openapi.util.io.FileUtilRt.toSystemIndependentName(FileUtilRt.java:207)
at com.intellij.openapi.util.io.FileUtil.toSystemIndependentName(FileUtil.java:634)
at org.jetbrains.android.sdk.AndroidSdkUtils.getPlatformDir(AndroidSdkUtils.java:218)
at org.jetbrains.android.sdk.AndroidSdkUtils.getPlatformAndAddOnJars(AndroidSdkUtils.java:122)
at org.jetbrains.android.sdk.AndroidSdkUtils.getLibraryRootsForTarget(AndroidSdkUtils.java:156)
at org.jetbrains.android.sdk.AndroidSdkUtils.setUpSdk(AndroidSdkUtils.java:409)
at org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:359)
at org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:336)
at org.jetbrains.android.sdk.AndroidSdkUtils.createNewAndroidPlatform(AndroidSdkUtils.java:327)
at org.jetbrains.android.sdk.AndroidSdkUtils.tryToCreateAndroidSdk(AndroidSdkUtils.java:617)
at com.android.tools.idea.gradle.customizer.android.AndroidSdkModuleCustomizer.customizeModule(AndroidSdkModuleCustomizer.java:92)
at com.android.tools.idea.gradle.customizer.android.AndroidSdkModuleCustomizer.customizeModule(AndroidSdkModuleCustomizer.java:48)
at com.android.tools.idea.gradle.service.AndroidGradleModelDataService.customizeModule(AndroidGradleModelDataService.java:330)
at com.android.tools.idea.gradle.service.AndroidGradleModelDataService.access$100(AndroidGradleModelDataService.java:88)
at com.android.tools.idea.gradle.service.AndroidGradleModelDataService$1.run(AndroidGradleModelDataService.java:159)
at com.intellij.openapi.command.WriteCommandAction$Simple.run(WriteCommandAction.java:166)
at com.intellij.openapi.application.RunResult.run(RunResult.java:38)
at com.intellij.openapi.command.WriteCommandAction$2$1.run(WriteCommandAction.java:114)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
at com.intellij.openapi.command.WriteCommandAction$2.run(WriteCommandAction.java:111)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:124)
at com.intellij.openapi.command.impl.CoreCommandProcessor.executeCommand(CoreCommandProcessor.java:99)
at com.intellij.openapi.command.WriteCommandAction.performWriteCommandAction(WriteCommandAction.java:108)
at com.intellij.openapi.command.WriteCommandAction.execute(WriteCommandAction.java:80)
at com.android.tools.idea.gradle.service.AndroidGradleModelDataService.doImport(AndroidGradleModelDataService.java:136)
at com.android.tools.idea.gradle.service.AndroidGradleModelDataService.importData(AndroidGradleModelDataService.java:122)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:132)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:102)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:141)
at com.intellij.openapi.externalSystem.service.project.manage.ProjectDataManager.importData(ProjectDataManager.java:148)
at com.android.tools.idea.gradle.util.Projects$1$1$1.run(Projects.java:130)
at com.intellij.openapi.roots.impl.ProjectRootManagerImpl.mergeRootsChangesDuring(ProjectRootManagerImpl.java:328)
at com.android.tools.idea.gradle.util.Projects$1$1.run(Projects.java:126)
at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:931)
at com.android.tools.idea.gradle.util.Projects$1.run(Projects.java:122)
at com.intellij.util.ui.UIUtil.invokeAndWaitIfNeeded(UIUtil.java:2369)
at com.android.tools.idea.gradle.util.Projects.populate(Projects.java:115)
at com.android.tools.idea.gradle.project.ProjectSetUpTask$2.run(ProjectSetUpTask.java:113)
at com.intellij.ide.startup.impl.StartupManagerImpl$7.run(StartupManagerImpl.java:369)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:311)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:756)
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:76)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:726)
at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:734)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:569)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:382)
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)
Try the latest version of Android SDK build tools.
buildToolsVersion "23.0.2"
Good luck.
这篇关于错误:执行失败的任务“:应用程序:processDebugResources”。 >在指数4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!