热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

gradle运行ransformClassesWithProfilers只能编译apk问题

*Whatwentwrong:Executionfailedfortask:childgit:app:transformClassesWithProfilers-transform


* What went wrong:
Execution failed for task ':childgit:app:transformClassesWithProfilers-transformForDebug'.
> java.lang.NullPointerException (no error message)
* Try:

这个问题比较难搞,因为看不到任何错误,也不能通过清除无效缓存,或者重启电脑、或者重新编译、或者--info 或者--,或者--debug,或者--stackflow 或者--忘记了或者查看idea.log/或者查看项目目录错误文件或者修改gradle版本来辨别问题,不过又一个关键的信息,它出现的错误所处gradle任务为childgit:app:transformClassesWithProfilers
关键词profilers剖析,我最近做了一个操作就是分析oom,但是特么没分析出来只看到了内存暴涨和字符串飙升,也没有具体错误,后面发现日至控制台有一个红色的东西告诉我在哪一行才找到错误的。。。
所以根据这个任务名百度了一下发现也有人提问。但是我特么是犹豫了很久才选择百度的,因为着实没有具体错误信息啊,不知道百度应该如何百度了,就纠结了1个多小时啊,以后无解了,就谷歌提了问。然后躺了一下 然后决定百度看看
https://stackoverflow.com/questions/46969033/apptransform-classes-with-profilers-transform-for-debug-failed?utm_medium=organic&utm_source=google_rich_qa&utm_campaign=google_rich_qa
具体错误信息报告

https://issuetracker.google.com/issues/79668901

《gradle运行ransformClassesWithProfilers只能编译apk问题》 image.png

最后解决办法是取消勾选

Executing tasks: [:childgit:app:assembleDebug]
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
WARNING: Configuration 'androidTestCompile' is obsolete and has been replaced with 'androidTestImplementation'.
It will be removed at the end of 2018
WARNING: Configuration 'androidTestApi' is obsolete and has been replaced with 'androidTestImplementation'.
It will be removed at the end of 2018
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018
Could not find google-services.json while looking in [src/nullnull/debug, src/debug/nullnull, src/nullnull, src/debug, src/nullnullDebug]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
Could not find google-services.json while looking in [src/nullnull/release, src/release/nullnull, src/nullnull, src/release, src/nullnullRelease]
registerResGeneratingTask is deprecated, use registerGeneratedResFolders(FileCollection)
:robot_sdk:compileJava UP-TO-DATE
:robot_sdk:processResources NO-SOURCE
:robot_sdk:classes UP-TO-DATE
:robot_sdk:jar UP-TO-DATE
:childgit:app:preBuild UP-TO-DATE
:childgit:customcrashlibrary:preBuild UP-TO-DATE
:childgit:customcrashlibrary:preDebugBuild UP-TO-DATE
:childgit:customcrashlibrary:checkDebugManifest UP-TO-DATE
:childgit:customcrashlibrary:processDebugManifest UP-TO-DATE
:childgit:robotbiz:preBuild UP-TO-DATE
:childgit:robotbiz:preDebugBuild UP-TO-DATE
:childgit:robotbiz:checkDebugManifest UP-TO-DATE
:childgit:robotbiz:processDebugManifest UP-TO-DATE
:childgit:app:preDebugBuild UP-TO-DATE
:childgit:customcrashlibrary:compileDebugAidl UP-TO-DATE
:childgit:robotbiz:compileDebugAidl UP-TO-DATE
:childgit:app:compileDebugAidl UP-TO-DATE
:childgit:customcrashlibrary:packageDebugRenderscript NO-SOURCE
:childgit:robotbiz:packageDebugRenderscript NO-SOURCE
:childgit:app:compileDebugRenderscript UP-TO-DATE
:childgit:app:generateDebugResValues UP-TO-DATE
:childgit:app:generateDebugResources UP-TO-DATE
:childgit:app:processDebugGoogleServices
Parsing json file: /Users/#/Documents/dev/robot_project/childgit/app/google-services.json
:childgit:customcrashlibrary:compileDebugRenderscript UP-TO-DATE
:childgit:customcrashlibrary:generateDebugResValues UP-TO-DATE
:childgit:customcrashlibrary:generateDebugResources UP-TO-DATE
:childgit:customcrashlibrary:packageDebugResources UP-TO-DATE
:childgit:robotbiz:compileDebugRenderscript UP-TO-DATE
:childgit:robotbiz:generateDebugResValues UP-TO-DATE
:childgit:robotbiz:generateDebugResources UP-TO-DATE
:childgit:robotbiz:packageDebugResources UP-TO-DATE
:childgit:app:mergeDebugResources UP-TO-DATE
:childgit:app:transformDataBindingBaseClassLogWithDataBindingMergeGenClassesForDebug UP-TO-DATE
:childgit:app:dataBindingGenBaseClassesDebug UP-TO-DATE
:childgit:app:checkDebugManifest UP-TO-DATE
:childgit:app:generateDebugBuildConfig
:childgit:app:prepareLintJar UP-TO-DATE
:childgit:app:mainApkListPersistenceDebug UP-TO-DATE
:childgit:app:createDebugCompatibleScreenManifests UP-TO-DATE
:childgit:app:processDebugManifest
:childgit:app:splitsDiscoveryTaskDebug UP-TO-DATE
:childgit:customcrashlibrary:platformAttrExtractor UP-TO-DATE
:childgit:customcrashlibrary:generateDebugRFile UP-TO-DATE
:childgit:robotbiz:platformAttrExtractor UP-TO-DATE
:childgit:robotbiz:generateDebugRFile UP-TO-DATE
:childgit:app:processDebugResources UP-TO-DATE
:childgit:app:generateDebugSources
:childgit:customcrashlibrary:generateDebugBuildConfig UP-TO-DATE
:childgit:customcrashlibrary:prepareLintJar UP-TO-DATE
:childgit:customcrashlibrary:generateDebugSources UP-TO-DATE
:childgit:customcrashlibrary:javaPreCompileDebug UP-TO-DATE
:childgit:customcrashlibrary:compileDebugJavaWithJavac UP-TO-DATE
:childgit:customcrashlibrary:processDebugJavaRes NO-SOURCE
:childgit:customcrashlibrary:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:childgit:robotbiz:generateDebugBuildConfig UP-TO-DATE
:childgit:robotbiz:prepareLintJar UP-TO-DATE
:childgit:robotbiz:generateDebugSources UP-TO-DATE
:childgit:robotbiz:javaPreCompileDebug UP-TO-DATE
:childgit:robotbiz:compileDebugJavaWithJavac UP-TO-DATE
:childgit:robotbiz:processDebugJavaRes NO-SOURCE
:childgit:robotbiz:transformClassesAndResourcesWithPrepareIntermediateJarsForDebug UP-TO-DATE
:childgit:app:dataBindingExportBuildInfoDebug
:childgit:app:javaPreCompileDebug UP-TO-DATE
:childgit:app:transformDataBindingWithDataBindingMergeArtifactsForDebug UP-TO-DATE
注: 某些输入文件使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。
注: 某些输入文件使用了未经检查或不安全的操作。
注: 有关详细信息, 请使用 -Xlint:unchecked 重新编译。
:childgit:app:compileDebugJavaWithJavac
:childgit:app:compileDebugNdk NO-SOURCE
:childgit:app:compileDebugSources
:childgit:app:mergeDebugShaders UP-TO-DATE
:childgit:app:compileDebugShaders UP-TO-DATE
:childgit:app:generateDebugAssets UP-TO-DATE
:childgit:customcrashlibrary:mergeDebugShaders UP-TO-DATE
:childgit:customcrashlibrary:compileDebugShaders UP-TO-DATE
:childgit:customcrashlibrary:generateDebugAssets UP-TO-DATE
:childgit:customcrashlibrary:packageDebugAssets UP-TO-DATE
:childgit:robotbiz:mergeDebugShaders UP-TO-DATE
:childgit:robotbiz:compileDebugShaders UP-TO-DATE
:childgit:robotbiz:generateDebugAssets UP-TO-DATE
:childgit:robotbiz:packageDebugAssets UP-TO-DATE
:childgit:app:mergeDebugAssets UP-TO-DATE
:childgit:app:transformClassesWithDexBuilderForDebug
:childgit:app:transformDexArchiveWithExternalLibsDexMergerForDebug
:childgit:app:transformDexArchiveWithDexMergerForDebug
:childgit:app:mergeDebugJniLibFolders UP-TO-DATE
:childgit:customcrashlibrary:compileDebugNdk NO-SOURCE
:childgit:customcrashlibrary:mergeDebugJniLibFolders UP-TO-DATE
:childgit:customcrashlibrary:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:childgit:customcrashlibrary:transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE
:childgit:customcrashlibrary:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:childgit:robotbiz:compileDebugNdk NO-SOURCE
:childgit:robotbiz:mergeDebugJniLibFolders UP-TO-DATE
:childgit:robotbiz:transformNativeLibsWithMergeJniLibsForDebug UP-TO-DATE
:childgit:robotbiz:transformNativeLibsWithStripDebugSymbolForDebug UP-TO-DATE
:childgit:robotbiz:transformNativeLibsWithIntermediateJniLibsForDebug UP-TO-DATE
:childgit:app:transformNativeLibsWithMergeJniLibsForDebug
:childgit:app:transformNativeLibsWithStripDebugSymbolForDebug
:childgit:app:processDebugJavaRes UP-TO-DATE
:childgit:app:transformResourcesWithMergeJavaResForDebug
:childgit:app:validateSigningDebug UP-TO-DATE
:childgit:app:packageDebug
:childgit:app:assembleDebug

推荐阅读
  • 微软头条实习生分享深度学习自学指南
    本文介绍了一位微软头条实习生自学深度学习的经验分享,包括学习资源推荐、重要基础知识的学习要点等。作者强调了学好Python和数学基础的重要性,并提供了一些建议。 ... [详细]
  • 在Android开发中,使用Picasso库可以实现对网络图片的等比例缩放。本文介绍了使用Picasso库进行图片缩放的方法,并提供了具体的代码实现。通过获取图片的宽高,计算目标宽度和高度,并创建新图实现等比例缩放。 ... [详细]
  • 本文介绍了设计师伊振华受邀参与沈阳市智慧城市运行管理中心项目的整体设计,并以数字赋能和创新驱动高质量发展的理念,建设了集成、智慧、高效的一体化城市综合管理平台,促进了城市的数字化转型。该中心被称为当代城市的智能心脏,为沈阳市的智慧城市建设做出了重要贡献。 ... [详细]
  • XML介绍与使用的概述及标签规则
    本文介绍了XML的基本概念和用途,包括XML的可扩展性和标签的自定义特性。同时还详细解释了XML标签的规则,包括标签的尖括号和合法标识符的组成,标签必须成对出现的原则以及特殊标签的使用方法。通过本文的阅读,读者可以对XML的基本知识有一个全面的了解。 ... [详细]
  • IjustinheritedsomewebpageswhichusesMooTools.IneverusedMooTools.NowIneedtoaddsomef ... [详细]
  • 纠正网上的错误:自定义一个类叫java.lang.System/String的方法
    本文纠正了网上关于自定义一个类叫java.lang.System/String的错误答案,并详细解释了为什么这种方法是错误的。作者指出,虽然双亲委托机制确实可以阻止自定义的System类被加载,但通过自定义一个特殊的类加载器,可以绕过双亲委托机制,达到自定义System类的目的。作者呼吁读者对网上的内容持怀疑态度,并带着问题来阅读文章。 ... [详细]
  • 本文介绍了Oracle存储过程的基本语法和写法示例,同时还介绍了已命名的系统异常的产生原因。 ... [详细]
  • 本文介绍了brain的意思、读音、翻译、用法、发音、词组、同反义词等内容,以及脑新东方在线英语词典的相关信息。还包括了brain的词汇搭配、形容词和名词的用法,以及与brain相关的短语和词组。此外,还介绍了与brain相关的医学术语和智囊团等相关内容。 ... [详细]
  • CSS3选择器的使用方法详解,提高Web开发效率和精准度
    本文详细介绍了CSS3新增的选择器方法,包括属性选择器的使用。通过CSS3选择器,可以提高Web开发的效率和精准度,使得查找元素更加方便和快捷。同时,本文还对属性选择器的各种用法进行了详细解释,并给出了相应的代码示例。通过学习本文,读者可以更好地掌握CSS3选择器的使用方法,提升自己的Web开发能力。 ... [详细]
  • 本文主要解析了Open judge C16H问题中涉及到的Magical Balls的快速幂和逆元算法,并给出了问题的解析和解决方法。详细介绍了问题的背景和规则,并给出了相应的算法解析和实现步骤。通过本文的解析,读者可以更好地理解和解决Open judge C16H问题中的Magical Balls部分。 ... [详细]
  • Python正则表达式学习记录及常用方法
    本文记录了学习Python正则表达式的过程,介绍了re模块的常用方法re.search,并解释了rawstring的作用。正则表达式是一种方便检查字符串匹配模式的工具,通过本文的学习可以掌握Python中使用正则表达式的基本方法。 ... [详细]
  • 本文介绍了UVALive6575题目Odd and Even Zeroes的解法,使用了数位dp和找规律的方法。阶乘的定义和性质被介绍,并给出了一些例子。其中,部分阶乘的尾零个数为奇数,部分为偶数。 ... [详细]
  • 标题: ... [详细]
  • 本文讨论了如何使用GStreamer来删除H264格式视频文件中的中间部分,而不需要进行重编码。作者提出了使用gst_element_seek(...)函数来实现这个目标的思路,并提到遇到了一个解决不了的BUG。文章还列举了8个解决方案,希望能够得到更好的思路。 ... [详细]
  • 本文介绍了使用readlink命令获取文件的完整路径的简单方法,并提供了一个示例命令来打印文件的完整路径。共有28种解决方案可供选择。 ... [详细]
author-avatar
勿泊心
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有