在 Android 中创建新项目时出错

2023-11-30

在 Eclipse 中创建新的 Android 项目时,出现以下错误:

[2011-03-16 09:49:50 - p] ERROR: Unknown option '--debug-mode'
[2011-03-16 09:49:50 - p] Android Asset Packaging Tool
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p] Usage:
[2011-03-16 09:49:50 - p]  aapt l[ist] [-v] [-a] file.{zip,jar,apk}
[2011-03-16 09:49:50 - p]    List contents of Zip-compatible archive.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  aapt d[ump] [--values] WHAT file.{apk} [asset [asset ...]]
[2011-03-16 09:49:50 - p]    badging          Print the label and icon for the app declared in APK.
[2011-03-16 09:49:50 - p]    permissions      Print the permissions from the APK.
[2011-03-16 09:49:50 - p]    resources        Print the resource table from the APK.
[2011-03-16 09:49:50 - p]    configurations   Print the configurations in the APK.
[2011-03-16 09:49:50 - p]    xmltree          Print the compiled xmls in the given assets.
[2011-03-16 09:49:50 - p]    xmlstrings       Print the strings of the given compiled xml assets.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  aapt p[ackage] [-d][-f][-m][-u][-v][-x][-z][-M AndroidManifest.xml] \
[2011-03-16 09:49:50 - p]         [-0 extension [-0 extension ...]] [-g tolerance] [-j jarfile] \
[2011-03-16 09:49:50 - p]         [--min-sdk-version VAL] [--target-sdk-version VAL] \
[2011-03-16 09:49:50 - p]         [--app-version VAL] [--app-version-name TEXT] [--custom-package VAL] \
[2011-03-16 09:49:50 - p]         [--rename-manifest-package PACKAGE] \
[2011-03-16 09:49:50 - p]         [--rename-instrumentation-target-package PACKAGE] \
[2011-03-16 09:49:50 - p]         [--utf16] [--auto-add-overlay] \
[2011-03-16 09:49:50 - p]         [-I base-package [-I base-package ...]] \
[2011-03-16 09:49:50 - p]         [-A asset-source-dir]  [-G class-list-file] [-P public-definitions-file] \
[2011-03-16 09:49:50 - p]         [-S resource-sources [-S resource-sources ...]]         [-F apk-file] [-J R-file-dir] \
[2011-03-16 09:49:50 - p]         [raw-files-dir [raw-files-dir] ...]
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]    Package the android resources.  It will read assets and resources that are
[2011-03-16 09:49:50 - p]    supplied with the -M -A -S or raw-files-dir arguments.  The -J -P -F and -R
[2011-03-16 09:49:50 - p]    options control which files are output.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  aapt r[emove] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2011-03-16 09:49:50 - p]    Delete specified files from Zip-compatible archive.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  aapt a[dd] [-v] file.{zip,jar,apk} file1 [file2 ...]
[2011-03-16 09:49:50 - p]    Add specified files to Zip-compatible archive.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  aapt v[ersion]
[2011-03-16 09:49:50 - p]    Print program version.
[2011-03-16 09:49:50 - p] 
[2011-03-16 09:49:50 - p]  Modifiers:
[2011-03-16 09:49:50 - p]    -a  print Android-specific data (resources, manifest) when listing
[2011-03-16 09:49:50 - p]    -c  specify which configurations to include.  The default is all
[2011-03-16 09:49:50 - p]        configurations.  The value of the parameter should be a comma
[2011-03-16 09:49:50 - p]        separated list of configuration values.  Locales should be specified
[2011-03-16 09:49:50 - p]        as either a language or language-region pair.  Some examples:
[2011-03-16 09:49:50 - p]             en
[2011-03-16 09:49:50 - p]             port,en
[2011-03-16 09:49:50 - p]             port,land,en_US
[2011-03-16 09:49:50 - p]        If you put the special locale, zz_ZZ on the list, it will perform
[2011-03-16 09:49:50 - p]        pseudolocalization on the default locale, modifying all of the
[2011-03-16 09:49:50 - p]        strings so you can look for strings that missed the
[2011-03-16 09:49:50 - p]        internationalization process.  For example:
[2011-03-16 09:49:50 - p]             port,land,zz_ZZ
[2011-03-16 09:49:50 - p]    -d  one or more device assets to include, separated by commas
[2011-03-16 09:49:50 - p]    -f  force overwrite of existing files
[2011-03-16 09:49:50 - p]    -g  specify a pixel tolerance to force images to grayscale, default 0
[2011-03-16 09:49:50 - p]    -j  specify a jar or zip file containing classes to include
[2011-03-16 09:49:50 - p]    -k  junk path of file(s) added
[2011-03-16 09:49:50 - p]    -m  make package directories under location specified by -J
[2011-03-16 09:49:50 - p]    -u  update existing packages (add new, replace older, remove deleted files)
[2011-03-16 09:49:50 - p]    -v  verbose output
[2011-03-16 09:49:50 - p]    -x  create extending (non-application) resource IDs
[2011-03-16 09:49:50 - p]    -z  require localization of resource attributes marked with
[2011-03-16 09:49:50 - p]        localization="suggested"
[2011-03-16 09:49:50 - p]    -A  additional directory in which to find raw asset files
[2011-03-16 09:49:50 - p]    -G  A file to output proguard options into.
[2011-03-16 09:49:50 - p]    -F  specify the apk file to output
[2011-03-16 09:49:50 - p]    -I  add an existing package to base include set
[2011-03-16 09:49:50 - p]    -J  specify where to output R.java resource constant definitions
[2011-03-16 09:49:50 - p]    -M  specify full path to AndroidManifest.xml to include in zip
[2011-03-16 09:49:50 - p]    -P  specify where to output public resource definitions
[2011-03-16 09:49:50 - p]    -S  directory in which to find resources.  Multiple directories will be scanned
[2011-03-16 09:49:50 - p]        and the first match found (left to right) will take precedence.
[2011-03-16 09:49:50 - p]    -0  specifies an additional extension for which such files will not
[2011-03-16 09:49:50 - p]        be stored compressed in the .apk.  An empty string means to not
[2011-03-16 09:49:50 - p]        compress any files at all.
[2011-03-16 09:49:50 - p]    --min-sdk-version
[2011-03-16 09:49:50 - p]        inserts android:minSdkVersion in to manifest.  If the version is 7 or
[2011-03-16 09:49:50 - p]        higher, the default encoding for resources will be in UTF-8.
[2011-03-16 09:49:50 - p]    --target-sdk-version
[2011-03-16 09:49:50 - p]        inserts android:targetSdkVersion in to manifest.
[2011-03-16 09:49:50 - p]    --values
[2011-03-16 09:49:50 - p]        when used with "dump resources" also includes resource values.
[2011-03-16 09:49:50 - p]    --version-code
[2011-03-16 09:49:50 - p]        inserts android:versionCode in to manifest.
[2011-03-16 09:49:50 - p]    --version-name
[2011-03-16 09:49:50 - p]        inserts android:versionName in to manifest.
[2011-03-16 09:49:50 - p]    --custom-package
[2011-03-16 09:49:50 - p]        generates R.java into a different package.
[2011-03-16 09:49:50 - p]    --auto-add-overlay
[2011-03-16 09:49:50 - p]        Automatically add resources that are only in overlays.
[2011-03-16 09:49:50 - p]    --rename-manifest-package
[2011-03-16 09:49:50 - p]        Rewrite the manifest so that its package name is the package name
[2011-03-16 09:49:50 - p]        given here.  Relative class names (for example .Foo) will be
[2011-03-16 09:49:50 - p]        changed to absolute names with the old package so that the code
[2011-03-16 09:49:50 - p]        does not need to change.
[2011-03-16 09:49:50 - p]    --rename-instrumentation-target-package
[2011-03-16 09:49:50 - p]        Rewrite the manifest so that all of its instrumentation
[2011-03-16 09:49:50 - p]        components target the given package.  Useful when used in
[2011-03-16 09:49:50 - p]        conjunction with --rename-manifest-package to fix tests against
[2011-03-16 09:49:50 - p]        a package that has been renamed.
[2011-03-16 09:49:50 - p]    --utf16
[2011-03-16 09:49:50 - p]        changes default encoding for resources to UTF-16.  Only useful when API
[2011-03-16 09:49:50 - p]        level is set to 7 or higher where the default encoding is UTF-8.
[2011-03-16 09:49:51 - p] Unknown error: Unable to build: the file dx.jar was not loaded from the SDK folder!

这是我为解决问题所做的:

  • 清理了项目
  • 重建项目
  • 卸载/重新安装 eclipse
  • 尝试重新定位 aapt.exe、dx.jar

请给我一些指示来解决这个问题。我读了一些帖子,他们建议了我上面尝试过的解决方案。还是没能解决问题。请帮忙。


Try

  • Eclipse > 运行 > 运行配置

  • 选择您的项目

  • 选择目标选项卡

  • 在盒子里其他模拟器命令行选项删除您拥有的所有文字

然后再次尝试运行

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

在 Android 中创建新项目时出错 的相关文章

  • 如何为ScrollView放置固定图像背景?

    我应该想要滚动视图滚动 而不是背景中的图像 将图像添加到滚动视图框架之前的视图层次结构的较高位置
  • Android - 从资产中解析巨大(超大)JSON 文件的最佳方法

    我正在尝试从资产文件夹中解析一些巨大的 JSON 文件 我如何加载并添加到 RecyclerView 我想知道解析这种大文件 大约 6MB 的最佳方法是什么 以及您是否知道可以帮助我处理此文件的良好 API 我建议您使用GSON lib h
  • 找不到 com.google.firebase:firebase-core:9.0.0 [重复]

    这个问题在这里已经有答案了 在遵循有些不一致的指示之后here https firebase google com docs admob android quick start name your project and here http
  • Android 后退按钮无法与 Flutter 选项卡内的导航器配合使用

    我需要在每个选项卡内有一个导航器 因此当我推送新的小部件时 选项卡栏会保留在屏幕上 代码运行得很好 但是 android 后退按钮正在关闭应用程序而不是运行 Navigator pop import package flutter mate
  • 谷歌坐标认证

    当我尝试连接到 Google 坐标时 总是出现异常GoogleAuthException 我拥有 Google 地图协调中心许可证 我确实使用我的包应用程序名称和 SHA1 在 google 控制台中创建了我的客户端 ID 我将权限添加到清
  • android xamarin 中的 reCaptcha

    我想在 Xamarin android 应用程序中实现验证码 我抓住了这个在 Android 中集成 googles reCaptcha 验证 https www c sharpcorner com article how to integ
  • 在画布上绘图

    我正在编写一个 Android 应用程序 它可以在视图的 onDraw 事件上直接绘制到画布上 我正在绘制一些涉及单独绘制每个像素的东西 为此我使用类似的东西 for int x 0 x lt xMax x for int y 0 y lt
  • 发布android后更改应用内购买项目的价格

    在 Google Play 上发布后 是否可以更改应用内购买商品的价格 我假设该应用程序也已发布 完整的在线文档位于http developer android com http developer android com也http sup
  • 在 SQLite 中搜索时排除 HTML 标签和一些 UNICODE 字符

    更新 4 我已经成功运行了firstchar例如 但现在的问题是使用regex 即使包含头文件 它也无法识别regex操作员 有什么线索可以解决这个问题吗 更新 2 我已经编译了sqlite3我的项目中的库 我现在正在寻找任何人帮助我为我的
  • Google 云端硬盘身份验证异常 - 需要许可吗? (v2)

    我一直在尝试将 Google Drive v2 添加到我的 Android 应用程序中 但无法获得授权 我收到 UserRecoverableAuthIOException 并显示消息 NeedPermission 我感觉 Google A
  • 我想实现下面的布局,按钮应该在屏幕底部,当惰性列被填充时,按钮不应该出去

    顶部有惰性列 惰性列下方有输入电话号码布局并从电话簿布局添加联系人 我希望当未添加联系人时此布局位于顶部 当我添加大量联系人时输入电话号码并添加电话簿布局中的联系人会随着惰性列滚动并移出屏幕 我不让他们走出屏幕 当接触较多时 它们必须粘在底
  • 如何发布Android .aar源以使Android Studio自动找到它们?

    我正在将库发布到内部 Sonatype Nexus 存储库 Android Studio 有一个功能 可以自动查找通过 gradle 引用的库的正确源 我将 aar 的源代码作为单独的 jar 发布到 Nexus 但 Android Stu
  • 尝试在 ubuntu 中编译 android 内核时出错

    我正在尝试从源代码编译 Android 内核 并且我已经下载了所有正确的软件包来执行此操作 但由于某种原因我收到此错误 arm linux androideabi gcc error unrecognized command line op
  • 在 android DatePickerDialog 中将语言设置为法语

    有什么办法可以让日期显示在DatePickerDialog用法语 我已经搜索过这个但没有找到结果 这是我的代码 Calendar c Calendar getInstance picker new DatePickerDialog Paym
  • Android访问远程SQL数据库

    我可以直接从 Android 程序访问远程 SQL 数据库 在网络服务器上 吗 即简单地打开包含所有必需参数的连接 然后执行 SQL 查询 这是一个私人程序 不对公众开放 仅在指定的手机上可用 因此我不担心第三方获得数据库访问权限 如果是这
  • .isProviderEnabled(LocationManager.NETWORK_PROVIDER) 在 Android 中始终为 true

    我不知道为什么 但我的变量isNetowrkEnabled总是返回 true 我的设备上是否启用互联网并不重要 这是我的GPSTracker class public class GPSTracker extends Service imp
  • 如何在Xamarin中删除ViewTreeObserver?

    假设我需要获取并设置视图的高度 在 Android 中 众所周知 只有在绘制视图之后才能获取视图高度 如果您使用 Java 有很多答案 最著名的方法之一如下 取自这个答案 https stackoverflow com a 24035591
  • Firebase 添加新节点

    如何将这些节点放入用户节点中 并创建另一个节点来存储帖子 我的数据库参考 databaseReference child user getUid setValue userInformations 您需要使用以下代码 databaseRef
  • 将 Intent 包装在 LabeledIntent 中以用于显示目的

    要求 我的应用程序中有一个 共享 按钮 我需要通过 Facebook 分享 我需要选择是否安装原生 Facebook 应用程序 我们的决定是 如果未安装该应用程序 则将用户发送到 facebook com 进行分享 当前状态 我可以检测何时
  • 捕获的图像分辨率太大

    我在做什么 我允许用户捕获图像 将其存储到 SD 卡中并上传到服务器 但捕获图像的分辨率为宽度 4608 像素和高度 2592 像素 现在我想要什么 如何在不影响质量的情况下获得小分辨率图像 例如我可以获取或设置捕获的图像分辨率为原始图像分

随机推荐

  • 为什么以下代码会让我的计算机发出蜂鸣声?

    我很难理解为什么这段代码会让我的电脑发出蜂鸣声 我已将这部分代码隔离为偶尔发出蜂鸣声的部分 但我不明白它有什么问题 const int BUFFER LENGTH 8192 char buffer BUFFER LENGTH 1 int r
  • 将 Word 加载项项目清单上传到 AppSource 时持续出现问题

    我将在此处提出另一个问题 因为这是我能够从 Microsoft Office 支持团队获得有意义的响应的唯一方法 请参见这个问题对于我提出的关于这个主题的最后一个问题 答复以及我针对答复提出的问题 尚未得到答复 我正在尝试将现有的 Word
  • 从mysql中的出生日期计算年龄[重复]

    这个问题在这里已经有答案了 我在 mysql 中有一个表 其中包含出生日期列 保存为 unix 时间戳 bigint 我想写这样的查询 SELECT as age FROM tableName And SELECT FROM tableNa
  • 如何映射 pandas 中的列值?

    在我的文件中 一列包含不同的成绩 列名称 成绩 例如 91 50K 92 60K 柴油 ADBlU等 对于所有这些等级 我需要将它们分为几个等级 eg 91 50K Petrol 在我的Python中 我该怎么做 请注意 我可以将整个列传递
  • ManagedCuda:非法地址;执行内核时

    我正在 C 项目中使用 ManagedCuda 库来利用 GPU 目前我正在遵循这个tutorial关于如何在使用 OpenCV 无法实现 C 和 C 之间编写兼容的代码 我的代码似乎一切正常 找到 构建了内核并执行了方法调用 但是我收到了
  • 如何仅读取文件的每隔一行?

    我只需要读取文件的每隔一行 文件很大 所以我不想使用readlines 我不确定如何实现迭代器 因此欢迎提出任何建议 一种可能是调用 next 两次 不太吸引人 with open pth file rw as pth pth next f
  • 在Python多处理中传递共享内存变量

    我有一堆文件 我想使用 Python 的多处理并行读取这些文件 并将所有数据收集到单个 NumPy 数组中 为此 我想定义一个共享内存 NumPy 数组并将其切片传递给不同的进程以并行读取 下面的代码给出了我想要做的事情的玩具说明 我试图使
  • NSURLConnection didFailWithError 未调用?

    为什么当指定 URL 不存在图像时 didFailWithError 不会被调用 例如 NSURLRequest request NSURLRequest requestWithURL NSURL URLWithString http ww
  • 阵列适配器从 Res 文件夹加载图像(Android 应用程序)

    我是一名 Android 新手 我试图通过数组适配器将 res Drawable 文件夹中的一堆图像加载到 Gridview 中 不幸的是 每次我尝试使用 gridView 查看活动时 我的应用程序都会崩溃 我想知道如何设置 res 文件夹
  • xamarin.forms 中的 Gmail 类似导航抽屉(母版页)

    我目前正在使用 MVVMlight 在 xamarin forms 中使用主从页面 它根据操作系统的默认行为进行渲染 它完美地呈现了我想要的内容 但在 android 母版页中从导航栏下方开始 我希望母版页能够像 ios 一样覆盖屏幕的整个
  • 具有两种不同字体大小的 NSAttributedString 示例?

    NSAttributedString对我来说真的是难以理解 我想设置一个UILabel有不同大小的文本 我收集NSAttributedString是要走的路 但我无法获得有关此的文档 如果有人能帮助我举一个具体的例子 我会很高兴 例如 假设
  • 使用MapKit框架在谷歌地图上绘制多边形

    我想在地图视图中显示 Google 地图 并在其中绘制多边形 圆形 有什么建议吗 我阅读你的问题的方式是你想要以编程方式在地图上绘制多边形 为此 请咨询MapKit 上的 Apple 文档 您不需要在 MapKit 地图上添加透明视图 MK
  • Android 在退出应用程序和显示 Toast 时取消 Toast

    我已经在这里阅读过有关此类问题的信息 但答案似乎不起作用 我展示一个Toast当用户单击按钮时 当用户连续单击按钮时 即使用户退出 Activity Toast 也会不断显示 吐司的长度很短 由于文本很长 因此无法更改吐司的长度 这是我目前
  • Valgrind - 无法理解错误输出

    如果我最终做错了什么 我很抱歉 好的 我的问题如下 我刚刚编写了一些非常简单的代码 但是当你查看 Valgrind 错误输出时 它让我感到困惑 Code include
  • Azure AD B2C 审核日志 - 图形 API

    我正在尝试检索 Azure AD B2C 用户登录审核日志 但它抛出以下错误 var signIns await graphClient AuditLogs SignIns Request GetAsync 失败 Microsoft Asp
  • 使用 AngularJS 创建自定义属性

    我是 AngularJS 的新手 我正在尝试编写一个指令来设置background color of a div 基于某种场景 本质上 在我看来 我希望能够编写以下代码 div content here div or div content
  • Angular UI Router:根据父解析对象决定子状态模板

    这是我的 app js 文件 我有一个父状态和两个子状态 两个子视图都需要该对象 states push name parentstate url parent objId abstract true templateUrl views p
  • .Net core托管服务保证完成

    我正在查看 Net Core 2 1 新功能托管服务 我发现它们的模型非常相似队列背景工作项 队列后台工作项似乎有一个限制 任务必须在 90 秒内执行 AppDomain 关闭只能延迟 90 秒 实际上是 HttpRuntimeSectio
  • Perl 正则表达式 |如何从文件中排除单词

    我正在寻找一些关于我在项目中的一些要求的 Perl 正则表达式语法 首先 我想从 txt 文件 字典 中排除字符串 例如 如果我的文件有以下字符串 path Document txt tree car ship 我使用正则表达式 a1tes
  • 在 Android 中创建新项目时出错

    在 Eclipse 中创建新的 Android 项目时 出现以下错误 2011 03 16 09 49 50 p ERROR Unknown option debug mode 2011 03 16 09 49 50 p Android A