- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
迁移到 Android studio 3 后,我无法编译,因为出现以下错误:
Error:Could not find the AndroidManifest.xml file, using generation
folder
[/home/salacr/git/Evotech/app/build/generated/source/apt/debug])
Error:Parceler: Code generation did not complete successfully. For
more details add the compiler argument -AparcelerStacktrace
Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> Compilation failed; see the compiler error output for details.
它可能与 android 注释的使用有关,我的 app/build.gradle 如下所示:
apply plugin: 'com.android.application'
apply plugin: 'realm-android'
def AAVersion = '4.3.1'
def parcelerVersion = '1.1.9'
android {
compileSdkVersion 26
buildToolsVersion '26.0.1'
defaultConfig {
applicationId "com.my.app"
minSdkVersion 16
targetSdkVersion 26
versionCode 1
versionName "1.0"
multiDexEnabled true
}
signingConfigs {
release {
storeFile file("******")
storePassword "******"
keyAlias "******"
keyPassword "******"
}
}
buildTypes {
release {
minifyEnabled false
signingConfig signingConfigs.release
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
splits {
abi {
enable true // enable ABI split feature to create one APK per ABI
universalApk true //generate an additional APK that targets all the ABIs
}
}
/*
// map for the version code
project.ext.versionCodes = ['armeabi':1, 'armeabi-v7a':2, 'arm64-v8a':3, 'mips':5, 'mips64':6, 'x86':8, 'x86_64':9]
android.applicationVariants.all { variant ->
// assign different version code for each output
variant.outputs.each { output ->
output.versionCodeOverride =
project.ext.versionCodes.get(output.getFilter(com.android.build.OutputFile.ABI), 0) * 1000000 + android.defaultConfig.versionCode
}
}
*/
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
}
dependencies {
implementation "org.parceler:parceler-api:$parcelerVersion"
annotationProcessor "org.parceler:parceler:$parcelerVersion"
annotationProcessor "org.androidannotations:androidannotations:$AAVersion"
implementation "org.androidannotations:androidannotations-api:$AAVersion"
implementation 'com.android.support:appcompat-v7:26.0.1'
implementation 'com.android.support:multidex:1.0.2'
}
我无法找到此问题的根本原因,有什么建议吗?我尝试了不同的 graddle 版本以及使用不同的 buildToolsVersion 工具,但没有效果。
有什么建议吗?
谢谢!
编辑1:我发现问题就在这里:
splits {
abi {
enable true // enable ABI split feature to create one APK per ABI
universalApk true //generate an additional APK that targets all the ABIs
}
}
没有这个,一切都会按预期进行。 IT 人员发现此配置与新 Android studio 中的 androidannotations 不兼容
编辑2:androidannotation 中已经存在问题:https://github.com/androidannotations/androidannotations/issues/2034
最佳答案
我遇到了类似的问题,当我将 android 注释版本从 4.4.0 更新到 4.5.0 时解决了我的问题。
关于android-studio - Android Studio 3 : Could not find the AndroidManifest. xml文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45682730/
我的android studio版本是3.4.0。 Gradle版本为3.4.0。我尝试清理项目,重新安装Android Studio,修改了Project Setting Build选项。到目前为止
我的应用程序仅由一个 application 模块组成。我最近试图将它分成 2 个模块(一个 feature 基础和一个 application apk 一个)以便稍后添加一个 instant-app
我正在尝试 http://developer.android.com/ 上的教程并在 AndroidManifest.xml 文件上遇到错误。发生的事情是,我在创建 Activity 时犯了一个错误(
我正在尝试将我的 ionic 3 应用程序 list 中的 allowBackup 属性设置为 false,但 gradle 提示出现以下错误: 来自 AndroidManifest.xml:4:18
我在我的 android 应用程序的 AndroidMenifest.xml 文件中遇到了以下两行: 为什么我们在 中写“编码”标签,它的用途是什么? 写第二行的目的是什么? 如果有人知道这一点
是否有任何独立的(独立于 Eclipse 或 IDE 特定的)工具可以检查 AndroidManifest.xml 文件是否有错误? 我最近遇到了一个恼人的问题,我输入了 reciever 而它本应该
我的一个项目的 AndroidManifest.xml 变得越来越大(> 1000 行),因为我必须对某些文件类型使用react并且涵盖所有情况变得越来越复杂。我想知道 list 大小是否有任何限制。
我的 AndroidManifest.xml 文件没有创建应有的启动器图标。 XML 如下:
AndroidManifest.xml配置文件对于Android应用开发来说是非常重要的基础知识,本文旨在总结该配置文件中重点的用法,以便日后查阅。下面是一个标准的AndroidManifest.x
我正在尝试使用eclipse中的gradle构建一个android应用程序,并且我试图在项目根目录中使用命令gradle build 构建apk, 我在 $projdir/build/intermed
简单的问题,但经过长时间的谷歌搜索,我还没有看到一个好的答案。 我有 2 种内置类型:调试、发布 我有 2 种口味:口味 1、口味 2 这将创建 4 个变体。 调试 + flavor 1 释放+ fl
我有这个错误 I/Ads (21352): Starting ad request. I/Ads (21352): SDK version: afma-sdk-a-v15090040.
每当我尝试运行该应用程序时,都会显示一个错误,并且来自 list 。下面是 list 和 logcat。请帮忙。 Manifest.xml
我可以在 AndroidManifest.xml 中设置一个设置,让我的应用程序写入文件系统而不仅仅是 SD 卡吗? *干杯 最佳答案 您应该使用定义的数据存储选项之一 here用于存储您的数据。要访
我按照一些教程使用 phonegap 的条形码扫描器插件。但是当我从现有源创建一个新的 android 项目来创建条码库时 (step 6 in this page)我收到错误:“AndroidMan
我的内存非常模糊,但是 Android SDK 中包含一个工具,当您针对未签名或调试签名的应用程序 APK(我不记得是哪个)运行它时,它会输出一个“已处理”的 AndroidManifest 文件。
是否可以在文件中指定一些信息,例如 API key ,然后以某种方式将此信息注入(inject) AndroidManifest 文件(可能在构建过程中)? 对于我的特定用例,documentatio
谁能解释一下是什么: tools:replace = "icon, label" 这之间有什么区别: tools:replace="android:icon,android:allowBackup,a
我正在尝试在嵌套 fragment 中显示 GoogleMaps: // inflate and return the layout View v = inflater.inflate
我正在发布针对中国市场的版本,我们都知道他们不支持 Playstore。从今以后,我们决定在中国商店发布。 其中一家中国商店要求在 list 文件中包含包名必须包含应用程序名称。但是现在我们的主 li
我是一名优秀的程序员,十分优秀!