- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 ant 从命令提示符编译 android 项目。但是当我用 ant 编译时,我在转换为 dex 文件时遇到了这个错误。
-dex:
[dex] Converting compiled files and external libraries into E:\Demo\bin\classes.dex...
[dx]
[dx] trouble writing output: Too many methods: 66156; max is 65536. By package:
[dx] 26 android
[dx] 83 android.accessibilityservice
[dx] 410 android.accounts
[dx] 430 android.animation
[dx] 8 android.annotation
[dx] 3695 android.app
[dx] 404 android.app.admin
[dx] 309 android.app.backup
[dx] 95 android.appwidget
[dx] 1248 android.bluetooth
[dx] 1673 android.content
[dx] 932 android.content.pm
[dx] 503 android.content.res
[dx] 522 android.database
[dx] 394 android.database.sqlite
[dx] 91 android.ddm
[dx] 5 android.debug
[dx] 45 android.dirEncryption
[dx] 163 android.drm
[dx] 51 android.drm.mobile1
[dx] 30 android.emoji
[dx] 1245 android.graphics
[dx] 705 android.graphics.drawable
[dx] 36 android.graphics.drawable.shapes
[dx] 321 android.hardware
[dx] 96 android.hardware.motion
[dx] 187 android.hardware.usb
[dx] 43 android.icu.text
[dx] 436 android.inputmethodservice
[dx] 614 android.location
[dx] 1526 android.media
[dx] 248 android.media.audiofx
[dx] 500 android.media.videoeditor
[dx] 134 android.mtp
[dx] 1547 android.net
[dx] 375 android.net.http
[dx] 49 android.net.rtp
[dx] 440 android.net.sip
[dx] 1529 android.net.wifi
[dx] 493 android.net.wifi.p2p
[dx] 1 android.net.wimax
[dx] 357 android.nfc
[dx] 165 android.nfc.tech
[dx] 1501 android.opengl
[dx] 2156 android.os
[dx] 301 android.os.storage
[dx] 468 android.preference
[dx] 589 android.provider
[dx] 916 android.renderscript
[dx] 35 android.sax
[dx] 140 android.sec.clipboard
[dx] 52 android.sec.clipboard.data
[dx] 31 android.sec.clipboard.data.file
[dx] 58 android.sec.clipboard.data.list
[dx] 31 android.sec.clipboard.util
[dx] 372 android.sec.enterprise
[dx] 5 android.sec.enterprise.kioskmode
[dx] 565 android.sec.multiwindow
[dx] 64 android.sec.mwdialog
[dx] 113 android.security
[dx] 720 android.server
[dx] 123 android.service.wallpaper
[dx] 147 android.speech
[dx] 458 android.speech.tts
[dx] 487 android.telephony
[dx] 16 android.telephony.cdma
[dx] 143 android.telephony.gsm
[dx] 729 android.text
[dx] 93 android.text.format
[dx] 372 android.text.method
[dx] 252 android.text.style
[dx] 43 android.text.util
[dx] 618 android.util
[dx] 45 android.util.safelog
[dx] 63 android.util.secutil
[dx] 3897 android.view
[dx] 314 android.view.accessibility
[dx] 226 android.view.animation
[dx] 319 android.view.inputmethod
[dx] 112 android.view.textservice
[dx] 3963 android.webkit
[dx] 5621 android.widget
[dx] 12 com.android.i18n.phonenumbers
[dx] 2 com.android.i18n.phonenumbers.geocoding
[dx] 23 com.android.internal
[dx] 627 com.android.internal.app
[dx] 80 com.android.internal.appwidget
[dx] 57 com.android.internal.content
[dx] 23 com.android.internal.database
[dx] 8 com.android.internal.http
[dx] 37 com.android.internal.location
[dx] 12 com.android.internal.logging
[dx] 49 com.android.internal.net
[dx] 649 com.android.internal.os
[dx] 26 com.android.internal.os.storage
[dx] 54 com.android.internal.policy
[dx] 194 com.android.internal.statusbar
[dx] 3499 com.android.internal.telephony
[dx] 675 com.android.internal.telephony.cat
[dx] 922 com.android.internal.telephony.cdma
[dx] 101 com.android.internal.telephony.cdma.sms
[dx] 1056 com.android.internal.telephony.gsm
[dx] 662 com.android.internal.telephony.ims
[dx] 7 com.android.internal.telephony.mosecurity
[dx] 474 com.android.internal.telephony.sip
[dx] 15 com.android.internal.telephony.test
[dx] 88 com.android.internal.textservice
[dx] 393 com.android.internal.util
[dx] 435 com.android.internal.view
[dx] 509 com.android.internal.view.menu
[dx] 695 com.android.internal.widget
[dx] 1 com.android.org.bouncycastle.asn1
[dx] 4 com.android.org.bouncycastle.asn1.x509
[dx] 3 com.android.org.bouncycastle.jce.netscape
[dx] 6 com.android.org.bouncycastle.openssl
[dx] 1 com.android.org.bouncycastle.util.encoders
[dx] 36 com.android.server
[dx] 10 com.google.android.collect
[dx] 313 com.google.android.gles_jni
[dx] 11 com.lguplus.se
[dx] 26 com.samsung
[dx] 67 com.samsung.ScreenCapture
[dx] 164 com.samsung.bluetoothle
[dx] 100 com.samsung.media.fmradio
[dx] 224 com.samsung.media.fmradio.internal
[dx] 338 com.samsung.wfd
[dx] 40 com.sec.android.app
[dx] 41 com.sec.android.app.IWSpeechRecognizer
[dx] 170 com.sec.android.app.eg
[dx] 341 com.sec.android.app.eg.activity
[dx] 21 com.sec.android.app.eg.cache
[dx] 12 com.sec.android.app.eg.database
[dx] 7 com.sec.android.app.eg.download
[dx] 62 com.sec.android.app.eg.fragment
[dx] 94 com.sec.android.app.eg.http
[dx] 28 com.sec.android.app.eg.os
[dx] 4 com.sec.android.app.eg.parser
[dx] 15 com.sec.android.app.eg.parser.evergalade
[dx] 311 com.sec.android.app.eg.parser.mediahub
[dx] 12 com.sec.android.app.eg.request
[dx] 27 com.sec.android.app.eg.request.get
[dx] 19 com.sec.android.app.eg.request.post
[dx] 10 com.sec.android.app.eg.screen
[dx] 1 com.sec.android.app.eg.screen.land
[dx] 46 com.sec.android.app.eg.service
[dx] 335 com.sec.android.app.eg.util
[dx] 51 com.sec.android.app.eg.view
[dx] 131 com.sec.android.app.eg.view.ebookhub
[dx] 129 com.sec.android.app.eg.view.gamehub
[dx] 127 com.sec.android.app.eg.view.mediahub
[dx] 124 com.sec.android.app.eg.view.musichub
[dx] 180 com.sec.android.app.eg.view.mymedia
[dx] 56 com.sec.android.app.eg.widget
[dx] 50 com.sec.android.facedetection
[dx] 10 com.sec.android.ims
[dx] 210 com.sec.android.internal.ims
[dx] 186 com.sec.android.internal.ims.external
[dx] 1 dalvik.bytecode
[dx] 65 dalvik.system
[dx] 7 dalvik.system.profiler
[dx] 4 default
[dx] 252 java.io
[dx] 447 java.lang
[dx] 8 java.lang.ref
[dx] 24 java.lang.reflect
[dx] 4 java.math
[dx] 108 java.net
[dx] 94 java.nio
[dx] 9 java.nio.channels
[dx] 13 java.nio.charset
[dx] 23 java.security
[dx] 17 java.security.cert
[dx] 1 java.security.spec
[dx] 39 java.text
[dx] 372 java.util
[dx] 62 java.util.concurrent
[dx] 20 java.util.concurrent.atomic
[dx] 12 java.util.concurrent.locks
[dx] 12 java.util.jar
[dx] 13 java.util.logging
[dx] 15 java.util.regex
[dx] 11 java.util.zip
[dx] 9 javax.crypto
[dx] 1 javax.crypto.spec
[dx] 33 javax.microedition.khronos.egl
[dx] 267 javax.microedition.khronos.opengles
[dx] 30 javax.net.ssl
[dx] 1 javax.security.auth.x500
[dx] 2 javax.sip
[dx] 11 javax.sip.address
[dx] 4 junit.framework
[dx] 6 libcore.icu
[dx] 2 libcore.internal
[dx] 17 libcore.io
[dx] 4 libcore.net
[dx] 7 libcore.net.http
[dx] 2 libcore.util
[dx] 2 org.apache.commons.codec.binary
[dx] 16 org.apache.harmony.dalvik.ddmc
[dx] 2 org.apache.harmony.luni.internal.util
[dx] 2 org.apache.harmony.security.asn1
[dx] 6 org.apache.harmony.security.pkcs7
[dx] 2 org.apache.harmony.security.provider.cert
[dx] 1 org.apache.harmony.xml
[dx] 11 org.apache.harmony.xnet.provider.jsse
[dx] 33 org.apache.http
[dx] 10 org.apache.http.client
[dx] 2 org.apache.http.client.entity
[dx] 8 org.apache.http.client.methods
[dx] 1 org.apache.http.client.params
[dx] 1 org.apache.http.conn
[dx] 2 org.apache.http.conn.routing
[dx] 4 org.apache.http.conn.scheme
[dx] 2 org.apache.http.conn.ssl
[dx] 1 org.apache.http.conn.util
[dx] 9 org.apache.http.entity
[dx] 3 org.apache.http.impl
[dx] 8 org.apache.http.impl.client
[dx] 1 org.apache.http.impl.conn
[dx] 3 org.apache.http.impl.conn.tsccm
[dx] 3 org.apache.http.impl.entity
[dx] 6 org.apache.http.impl.io
[dx] 6 org.apache.http.io
[dx] 16 org.apache.http.message
[dx] 14 org.apache.http.params
[dx] 9 org.apache.http.protocol
[dx] 8 org.apache.http.util
[dx] 3 org.ccil.cowan.tagsoup
[dx] 25 org.json
[dx] 2 org.kxml2.io
[dx] 13 org.xml.sax
[dx] 1 org.xml.sax.helpers
[dx] 31 org.xmlpull.v1
BUILD FAILED
D:\DevTools\android-sdk-windows\tools\ant\build.xml:851: The following error occurred while executing this line:
D:\DevTools\android-sdk-windows\tools\ant\build.xml:853: The following error occurred while executing this line:
D:\DevTools\android-sdk-windows\tools\ant\build.xml:865: The following error occurred while executing this line:
D:\DevTools\android-sdk-windows\tools\ant\build.xml:266: null returned: 2
请帮助我,如何解决这个问题?
这是我的build.xml文件
<!-- The local.properties file is created and updated by the 'android' tool.
It contains the path to the SDK. It should *NOT* be checked into
Version Control Systems. -->
<property file="local.properties" />
<!-- The ant.properties file can be created by you. It is only edited by the
'android' tool to add properties to it.
This is the place to change some Ant specific build properties.
Here are some properties you may want to change/update:
source.dir
The name of the source directory. Default is 'src'.
out.dir
The name of the output directory. Default is 'bin'.
For other overridable properties, look at the beginning of the rules
files in the SDK, at tools/ant/build.xml
Properties related to the SDK location or the project target should
be updated using the 'android' tool with the 'update' action.
This file is an integral part of the build system for your
application and should be checked into Version Control Systems.
-->
<property file="ant.properties" />
<!-- if sdk.dir was not set from one of the property file, then
get it from the ANDROID_HOME env var.
This must be done before we load project.properties since
the proguard config can use sdk.dir -->
<property environment="env" />
<condition property="sdk.dir" value="${env.ANDROID_HOME}">
<isset property="env.ANDROID_HOME" />
</condition>
<!-- The project.properties file is created and updated by the 'android'
tool, as well as ADT.
This contains project specific properties such as project target, and library
dependencies. Lower level build properties are stored in ant.properties
(or in .classpath for Eclipse projects).
This file is an integral part of the build system for your
application and should be checked into Version Control Systems. -->
<loadproperties srcFile="project.properties" />
<!-- quick check on sdk.dir -->
<fail
message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
unless="sdk.dir"
/>
<!--
Import per project custom build rules if present at the root of the project.
This is the place to put custom intermediary targets such as:
-pre-build
-pre-compile
-post-compile (This is typically used for code obfuscation.
Compiled code location: ${out.classes.absolute.dir}
If this is not done in place, override ${out.dex.input.absolute.dir})
-post-package
-post-build
-pre-clean
-->
<import file="custom_rules.xml" optional="true" />
<!-- Import the actual build file.
To customize existing targets, there are two options:
- Customize only one target:
- copy/paste the target into this file, *before* the
<import> task.
- customize it to your needs.
- Customize the whole content of build.xml
- copy/paste the content of the rules files (minus the top node)
into this file, replacing the <import> task.
- customize to your needs.
***********************
****** IMPORTANT ******
***********************
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
in order to avoid having your file be overridden by tools such as "android update project"
-->
<!-- version-tag: 1 -->
<import file="${sdk.dir}/tools/ant/build.xml" />
最佳答案
在我看来,您正试图将 android.jar
编译到您的包中。如果不了解您的项目/构建脚本是如何设置的,就很难给出完整的答案:
确保您没有专门将 android.jar
添加到您的构建路径。
关于android - 无法写入输出 : Too many methods: 66156; max is 65536. By package: android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11845941/
我正在使用 OUTFILE 命令,但由于权限问题和安全风险,我想将 shell 的输出转储到文件中,但出现了一些错误。我试过的 #This is a simple shell to connect t
我刚刚开始学习 Java,我想克服在尝试为这个“问题”创建 Java 程序时出现的障碍。这是我必须创建一个程序来解决的问题: Tandy 喜欢分发糖果,但只有 n 颗糖果。对于她给第 i 个糖果的人,
你好,我想知道我是否可以得到一些帮助来解决我在 C++ 中打印出 vector 内容的问题 我试图以特定顺序在一个或两个函数调用中输出一个类的所有变量。但是我在遍历 vector 时收到一个奇怪的错误
我正在将 intellij (2019.1.1) 用于 java gradle (5.4.1) 项目,并使用 lombok (1.18.6) 来自动生成代码。 Intellij 将生成的源放在 out
编辑:在与 guest271314 交流后,我意识到问题的措辞(在我的问题正文中)可能具有误导性。我保留了旧版本并更好地改写了新版本 背景: 从远程服务器获取 JSON 时,响应 header 包含一
我的问题可能有点令人困惑。我遇到的问题是我正在使用来自 Java 的 StoredProcedureCall 调用过程,例如: StoredProcedureCall call = new Store
在我使用的一些IDL中,我注意到在方法中标记返回值有2个约定-[in, out]和[out, retval]。 当存在多个返回值时,似乎使用了[in, out],例如: HRESULT MyMetho
当我查看 gar -h 的帮助输出时,它告诉我: [...] gar: supported targets: elf64-x86-64 elf32-i386 a.out-i386-linux [...
我想循环遍历一个列表,并以 HTML 格式打印其中的一部分,以代码格式打印其中的一部分。所以更准确地说:我想产生与这相同的输出 1 is a great number 2 is a great
我有下面的tekton管道,并尝试在Google Cloud上运行。集群角色绑定。集群角色。该服务帐户具有以下权限。。例外。不确定需要为服务帐户设置什么权限。
当尝试从 make 过滤非常长的输出以获取特定警告或错误消息时,第一个想法是这样的: $ make | grep -i 'warning: someone set up us the bomb' 然而
我正在创建一个抽象工具类,该类对另一组外部类(不受我控制)进行操作。外部类在某些接口(interface)点概念上相似,但访问它们相似属性的语法不同。它们还具有不同的语法来应用工具操作的结果。我创建了
这个问题已经有答案了: What do numbers starting with 0 mean in python? (9 个回答) 已关闭 7 年前。 在我的代码中使用按位与运算符 (&) 时,我
我写了这段代码来解析输入文件中的行输入格式:电影 ID 可以有多个条目,所以我们应该计算平均值输出:**没有重复(这是问题所在) import re f = open("ratings2.txt",
我需要处理超过 1000 万个光谱数据集。数据结构如下:大约有 1000 个 .fits(.fits 是某种数据存储格式)文件,每个文件包含大约 600-1000 个光谱,其中每个光谱中有大约 450
我编写了一个简单的 C 程序,它读取一个文件并生成一个包含每个单词及其出现频率的表格。 该程序有效,我已经能够在 Linux 上运行的终端中获得显示的输出,但是,我不确定如何获得生成的显示以生成包含词
很难说出这里要问什么。这个问题模棱两可、含糊不清、不完整、过于宽泛或夸夸其谈,无法以目前的形式得到合理的回答。如需帮助澄清此问题以便重新打开,visit the help center . 关闭 1
1.普通的输出: print(str)#str是任意一个字符串,数字··· 2.格式化输出: ?
我无法让 logstash 正常工作。 Basic logstash Example作品。但后来我与 Advanced Pipeline Example 作斗争.也许这也可能是 Elasticsear
这是我想要做的: 我想让用户给我的程序一些声音数据(通过麦克风输入),然后保持 250 毫秒,然后通过扬声器输出。 我已经使用 Java Sound API 做到了这一点。问题是它有点慢。从发出声音到
我是一名优秀的程序员,十分优秀!