android - 使用 AndroidAnnotations 将 android 应用程序项目从 Android Studio 0.8 迁移到 1.0 版本

标签 android android-studio migration android-annotations

我正在尝试将 Android 应用程序项目从 Android Studio 0.8 迁移到 1.0 版本。该项目使用AndroidAnnotations框架。

当您尝试使用 APT 插件提供 AndroidAnnotations 所需的自定义参数时,就会出现问题。

使用此指令将导致下一个编译器错误:Could not find property 'processResources'

apt {
    arguments {
        androidManifestFile variant.processResources.manifestFile
        resourcePackageName “com.rf.commons”
    }
} 

如有任何想法,我们将不胜感激。

谢谢!

最佳答案

按如下方式编辑 Gradle 文件应该可以解决问题:

apt {
    arguments {
       androidManifestFile variant.outputs[0].processResources.manifestFile
       resourcePackageName "your.package.name"
    }
}

关于android - 使用 AndroidAnnotations 将 android 应用程序项目从 Android Studio 0.8 迁移到 1.0 版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27377321/

相关文章:

javascript - 通过 ListView 从数据库中删除多个选定项目?

python - 跟踪向 Python 3.x 的全局迁移

android - Android中的高分辨率屏幕截图

android - 如何在 Android Studio 中的 Sticky Header RecyclerView 上方添加一个固定的 View?

安卓应用登录流程

android - 开始使用 OpenGL ... 在 Android 中

android studio 2.2如何在没有android-apt插件的情况下应用dagger2

android - 如何使用 gradle bintray 插件将模块上传到 JCenter?

linux - 哪些 ESQL/C 函数可以直接从 C 代码调用?

.net - 将 Delphi 7 应用程序迁移到 .NET