- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
我在使用 android studio 导入项目时遇到了一个问题。下面有更多详细信息:```
Error:Execution failed for task ':app:transformClassesWithDexForArmDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1
```
And the Gradle console show the following message:
---------
Executing tasks: [:app:assembleArmDebug]
Configuration on demand is an incubating feature.
:app:copyJniLibsArmDebugMainJniLibs UP-TO-DATE
:app:armDebug UP-TO-DATE
:app:preBuild UP-TO-DATE
:app:preArmDebugBuild UP-TO-DATE
:app:checkArmDebugManifest
:app:preArmReleaseBuild UP-TO-DATE
:app:prepareCjtLibraryWheelCamera019Library UP-TO-DATE
:app:prepareComAndroidSupportAnimatedVectorDrawable2531Library UP-TO-DATE
:app:prepareComAndroidSupportAppcompatV72531Library UP-TO-DATE
:app:prepareComAndroidSupportCardviewV72531Library UP-TO-DATE
:app:prepareComAndroidSupportDesign2531Library UP-TO-DATE
:app:preArmDebugAndroidTestBuild UP-TO-DATE
:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:app:prepareComAndroidSupportRecyclerviewV72531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCompat2531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUi2531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportCoreUtils2531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportFragment2531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportMediaCompat2531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42531Library UP-TO-DATE
:app:prepareComAndroidSupportSupportVectorDrawable2531Library UP-TO-DATE
:app:prepareComAndroidSupportTransition2531Library UP-TO-DATE
:app:prepareComBlankjUtilcode134Library UP-TO-DATE
:app:prepareComCjjMaterialrefeshlayoutLibrary130Library UP-TO-DATE
:app:prepareComDaimajiaAndroidanimationsLibrary113Library UP-TO-DATE
:app:prepareComDaimajiaEasingLibrary101Library UP-TO-DATE
:app:prepareComDanikulaVideocache264Library UP-TO-DATE
:app:prepareComDevbracketsAndroidExomedia301Library UP-TO-DATE
:app:prepareComEdmodoCropper101Library UP-TO-DATE
:app:prepareComFlycoTablayoutFlycoTabLayout_Lib212Library UP-TO-DATE
:app:prepareComGetbaseFloatingactionbutton1101Library UP-TO-DATE
:app:prepareComGithubChrisbanesPhotoView130Library UP-TO-DATE
:app:prepareComGithubCtiaoDanmakuFlameMaster0912Library UP-TO-DATE
:app:prepareComGithubJmolsmobileLandscapevideocamera107Library UP-TO-DATE
:app:prepareComGithubSatyanSugar15Library UP-TO-DATE
:app:prepareComGoogleAndroidExoplayerExoplayerR159Library UP-TO-DATE
:app:prepareComJaydenxiaoGuider100Library UP-TO-DATE
:app:prepareComJcodecraeerXrecyclerview132Library UP-TO-DATE
:app:prepareComMakeramenRoundedimageview230Library UP-TO-DATE
:app:prepareComMalinskiySuperrecyclerview114Library UP-TO-DATE
:app:prepareComOrhanobutLogger115Library UP-TO-DATE
:app:prepareComPgyersdkSdk254Library UP-TO-DATE
:app:prepareComPingxxPingppAlipay218Library UP-TO-DATE
:app:prepareComPingxxPingppCore218Library UP-TO-DATE
:app:prepareComPingxxPingppWxpay218Library UP-TO-DATE
:app:prepareComRengwuxianMaterialedittextLibrary214Library UP-TO-DATE
:app:prepareComScwangSmartrefreshSmartRefreshHeader103Library UP-TO-DATE
:app:prepareComScwangSmartrefreshSmartRefreshLayout103Library UP-TO-DATE
:app:prepareComSerenegiantCommon119Library UP-TO-DATE
:app:prepareComZhyOkhttputils262Library UP-TO-DATE
:app:prepareDeHdodenhofCircleimageview210Library UP-TO-DATE
:app:prepareJpWasabeefGlideTransformations202Library UP-TO-DATE
:app:preparePubDevrelEasypermissions020Library UP-TO-DATE
:app:prepareArmDebugDependencies
:app:compileArmDebugAidl UP-TO-DATE
:app:compileArmDebugRenderscript UP-TO-DATE
:app:generateArmDebugBuildConfig UP-TO-DATE
:app:generateArmDebugAssets UP-TO-DATE
:app:mergeArmDebugAssets UP-TO-DATE
:app:generateArmDebugResValues UP-TO-DATE
:app:generateArmDebugResources UP-TO-DATE
:app:mergeArmDebugResources UP-TO-DATE
:app:processArmDebugManifest UP-TO-DATE
:app:processArmDebugResources UP-TO-DATE
:app:generateArmDebugSources UP-TO-DATE
:app:compileArmDebugJavaWithJavac UP-TO-DATE
:app:compileArmDebugSources UP-TO-DATE
:app:transformClassesWithJarMergingForArmDebug UP-TO-DATE
:app:collectArmDebugMultiDexComponents UP-TO-DATE
:app:transformClassesWithMultidexlistForArmDebug UP-TO-DATE
:app:transformClassesWithDexForArmDebug
解析错误:
unsupported class file version 52.0
...while parsing com/a/a/a.class
PARSE ERROR:
unsupported class file version 52.0
...while parsing com/a/a/b.class
2 errors; aborting
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithDexForArmDebug'.
com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command '/Library/Java/JavaVirtualMachines/jdk1.8.0_161.jdk/Contents/Home/bin/java'' finished with non-zero exit value 1 * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 39.744 secs
这个android项目在另一台电脑上可以很好的运行,但是在当前的电脑上无法运行。希望你能帮我解决这个问题或者给我一些建议,在此先感谢。
最佳答案
尝试将此代码添加到 build.gradle > android
dexOptions {
javaMaxHeapSize "4g"
}
关于java - 进程 'command '/Applications/Android Studio 3.0.1.app/Contents/jre/jdk/Contents/Home/bin/java'' 以非零退出值 1 完成,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49001794/
所以我得到了这个形状为 (31641600,2) 的 numpy 数组,其中有一些零值,如果不是很多的话。 我们称这个数组为 X。 正在做: print len(X) >>> 31641600 然后做
TL;DR:我有一个 IBOutlet ( UILabel ) 在 Storyboard 中正确连接。访问(展开)它在 viewDidLoad() 中工作正常...但几秒钟后它的值为零。一个观察点说,
我想用numpy数组进行非零cumsum。只需跳过数组中的零并应用 cumsum 即可。假设我有一个 np.数组 a = np.array([1,2,1,2,5,0,9,6,0,2,3,0]) 我的结
该代码运行,甚至产生预期的输出。但是,在构建日志中,我总是得到进程终止,状态为 2(0 分钟,5 秒) 或该日志的某些变体。 代码- #include #include void main() { p
我读了一些关于 TCP window scaling 的东西和 BDP (不太清楚),我无法弄清楚到底是什么原因导致发送方的 TCP 实现设置非零 WS,用户模式客户端程序是否会以某种方式影响它?我认
我有一个字典 { 'a': 'a', 'b': 0, 'c': {} } 我需要省略所有具有空值的键(0 是不被认为是空的)。所以,它的输出应该是 { 'a': 'a', 'b': 0 }。 对于 {
我想在 python 中的 pandas 数据帧上应用 cumsum,但没有零。只是我想保留零并在数据帧上执行 cumsum 。假设我有这样的数据框: import pandas as pd df =
我使用 getimagesize 函数获取图像的宽度和高度,如下所示: list($width,$height) = getimagesize($source_pic); 如何使用 IF 条件来检查
在 PHP 中(使用内置函数)我想用小数转换/格式化数字,以便只显示非零小数。但是,我的另一个要求是,如果它是一个没有十进制值的数字,我仍然希望显示为零。例子: 9.000 -> 9.0 9.100
我可以使用 df['TOTAL'] = df.sum(axis=1) 向此 DF 添加一个 TOTAL 列,它会像这样添加行元素: col1 col2 TOTAL 0 1.0 5.0
我正在玩 python 列表,我想在不使用列表时从内存中删除它。(我有大数据列表,可能有数千或数百万个元素..数据类型-> 浮点型) 我试过这段代码,看看删除在 python 中是如何工作的(示例)
我正在研究 Linux 设备驱动程序代码。我无法透露这段代码的具体用途。我会尽力解释我的情况。当我们收到 USB 中断,表明有来自 USB 的数据时,下面的代码将在中断上下文中执行。数据将以 URB
能力 manpage比较长,有些东西我没有完全理解。 例如,决定我们是否有权访问 CAP_NET_RAW 的函数看起来如何? 输入: a = 有效 uid 为 0 b = 有一些真实的/保存的/任何为
我正在创建一个测试用例,用于测试 TVIroom 类的委托(delegate)函数 didDisconnectwithError 是否可以被调用。为此,我需要向委托(delegate)函数传递一个空白
我想知道 numpy.nonzero/numpy.flatnonzero 返回的索引顺序。 我在文档中找不到任何关于它的内容。它只是说: A[nonzero(flag)] == A[flag] 虽然在
假设我有这样的数据框 id p1 p2 p3 p4 1 0 9 0 4 2 0 0 0 4 3 1 3 10 7 4 1 5 3
这个问题在这里已经有了答案: Division of integers in Java [duplicate] (7 个答案) 关闭 9 年前。 我有一个音量控制 slider 来控制 Androi
我们正在运行一个名为 Axe 的工具检查 HTML 页面的有效性和 508 合规性/可访问性。 此错误作为违规出现: Elements should not have tabindex greater
所以我有两个这样的模型 class ModelParent include Mongoid::Document field :name, :type => String has_one :
我是一名优秀的程序员,十分优秀!