草庐IT

jaxb2-annotate-plugin

全部标签

Android Studio 2.2更新: aligned APK (zipAlign) not generated using the new Gradle Plugin 2. 2.0

将AndroidStudio更新到版本2.2后,我还获得了Gradle插件的更新(它是2.1.3):...classpath'com.android.tools.build:gradle:2.2.0'...我看到未对齐的变体APK文件,但不再生成其他变体。我尝试启用zip对齐:buildTypes{release{minifyEnabledfalsezipAlignEnabledtrueproguardFilesgetDefaultProguardFile('proguard-android.txt'),'proguard-rules.pro'signingConfigsigningC

Android 数据绑定(bind)构建错误 : [data binding plugin]: failed to setup data binding

我正在使用来自Google的Android数据绑定(bind)库,我曾经使用过它。现在,似乎“某事”发生了变化,它导致数据绑定(bind)库出现问题。[databindingplugin]:failedtosetupdatabinding我被一个非常普遍的错误难住了,这个错误证明很难调试。据我所知,当数据绑定(bind)库对您的布局文件之一有问题(比如绑定(bind)中的拼写错误)时,会抛出此错误。问题是,如何找出哪个布局文件导致了问题?有人对如何找出问题所在有任何提示/建议吗?没有一次注释掉XML布局代码和Java代码文件,我有点不知所措如何有效地解决这些类型的问题。我得到的唯一线索

android - org/intellij/lang/annotations/Identifier.class 的 TransformException 重复条目

我收到这个错误Error:Executionfailedfortask':app:transformClassesWithJarMergingForDebug'.>com.android.build.api.transform.TransformException:java.util.zip.ZipException:duplicateentry:org/intellij/lang/annotations/Identifier.class它是在我将compile"com.wefika:flowlayout:0.4.0"添加到我的gradle之后开始的这是我的gradle文件packag

android - 如果 gradle-android-test-plugin 测试失败,不要让 gradle 构建失败

我将我的项目设置为使用Robolectric和gradle-android-test-plugin运行.这一切工作正常,第一个测试正在运行但失败了。如果测试失败,这也将导致gradle构建失败。有没有办法让构建继续进行,并记下失败的测试以供后续步骤评估?计划是将测试集成到持续集成服务器中,只有在测试失败时构建才会不稳定。 最佳答案 嗯。好吧,我认为你有两个选择。一种是使用testTask.ignoreFailures=true当测试失败时不让任务失败。另一种方法是使用“--continue”运行gradle命令。这将执行尽可能多的任

android - Unity Google Play Services Plugin API 与 Show Leaderboard UI 功能不同步?

我使用GooglePlay游戏服务Unity插件构建Android游戏,如下所述:https://github.com/playgameservices/play-games-plugin-for-unity问题:当我使用API(GooglePlay插件的社交API或PlayGamesPlatform.Instance对象)加载分数时,我得到过时分数。但是,当我改用ShowLeaderBoardUI()函数时,GUI中的分数是正确的。因此发布分数没有问题。我使用以下代码fragment从GooglePlay游戏服务记分牌加载用户分数:voidLoadUsersAndDisplay(in

android - 没有 @Provides-annotated 方法就不能提供上下文,但它是吗?

我有以下简单模块:@ModulepublicclassApplicationModule{privateCustomApplicationcustomApplication;publicApplicationModule(CustomApplicationcustomApplication){this.customApplication=customApplication;}@Provides@SingletonCustomApplicationprovideCustomApplication(){returnthis.customApplication;}@Provides@Sing

android - Gradle + Annotations + Flavors = 不会运行注释处理器

我有一个Gradle构建脚本,它使用注释处理器(AndroidAnnotations)生成代码。在我添加新的ProFlavor之前,构建一直很好。我可以构建Free风格,但是当我构建Pro风格时,注释处理器没有运行。这会导致缺少代码并且构建失败。这是我的脚本:buildscript{repositories{maven{url'http://repo1.maven.org/maven2'}}dependencies{classpath'com.android.tools.build:gradle:0.5.+'}}applyplugin:'android'repositories{mav

android - Cordova 构建返回缺少的 plugin.xml

当我构建我的cordova项目时,我收到一条警告消息:Missingfile:/home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/nl.x-services.plugins.toast/plugin.xmlMissingfile:/home/vijay/workspace/Repos_temp/QuickTraq_Android/plugins/cordova-plugin-device-rotation-vector/plugin.xml当我添加插件或删除插件时也会发生这种情况。这就像我添加插件或构建项目时的警告一样发

c++ - "plugin verification data mismatch"while loading plugin for qt5 project

我有带有两个简单插件的原始(无QtDesigner)Qt5项目,其中一个没有加载简洁错误:“插件验证数据不匹配”。第一个插件的header(加载并运行良好):#ifndef__PIROGRONIAN__P2P2__GUI_PLUGIN__H__#define__PIROGRONIAN__P2P2__GUI_PLUGIN__H__#include"QtCore/QtCore"#include"PluginInterface.h"namespaceP2P2{classGuiPlugin:publicQObject,publicPluginInterface{Q_OBJECTQ_PLUGIN

c++ - _Use_decl_annotations_ 是什么意思

我是SAL的新手。我想知道_Use_decl_annotations_是什么意思。我从MSDN学习过:http://msdn.microsoft.com/en-us/library/jj159529.aspx."Maybeusedonafunctiondefinition(alsoknownasafunctionbody)inplaceofthelistofannotationsintheheader.When_Use_decl_annotations_isused,theannotationsthatappearonanin-scopeheaderforthesamefunction