草庐IT

execute-attribute

全部标签

java - 安卓工作室-Gradle : Execution failed for task ':Foo:dexDebug' - but why?

我收到这个错误:Gradle:Executionfailedfortask':Foo:dexDebug'.从2天开始!我已经尝试了很多解决方案......但没有任何效果!真的!需要帮忙!我在androidStudio工作。(IntelliJIDEA)对于下面这三个目录FooProject[RootProject]|-gradle|-libraries|-facebook[library1]|-libs|-android-support-v4.jar|-res|-*.(drawable...)|-src|-*.java|-build.gradle|-AnroidManifest.xml|

android - 错误 :Execution failed for task ':app:processDebugGoogleServices' . 安卓

错误:任务“:app:processDebugGoogleServices”执行失败。请通过更新google-services插件的版本(有关最新版本的信息可在https://bintray.com/android/android-tools/com.google.gms.google-services/获得)或将com.google.android.gms的版本更新为9.0.2来修复版本冲突这是我遇到的错误。下面是我的gradle文件。我已经尝试了很多stackoverflow的解决方案,但没有一个适用于我的情况。applyplugin:'com.android.applicatio

Linux中执行java命令报错:cannot execute binary file: Exec format error

前言对于这个问题,如果你确认文件没有损坏、文件权限正确、服务器位数和JDK位数一致,那么本文99.999999%可以解决你的问题。一、问题现象Java程序在自己的开发环境、测试环境,一切正常,启动命令如下:nohupjava-jar/app/xxx.jar>/dev/null2>&1&某天,终于要在客户的生产环境进行部署了。一切都很愉快,现在万事俱备,只差启动了。现在我们使用同样的命令来启动它。啪。。。报错了。一定是手抖打错了什么命令,重新检查一遍,再启动一次,走你。。。啪。。。还是报错。报错信息如下:-bash:java:cannotexecutebinaryfile:Execformate

Python 中 AttributeError: Int object Has No Attribute 错误

int数据类型是最基本和最原始的数据类型之一,它不仅在Python中,而且在其他几种编程语言中都用于存储和表示整数。只要没有小数点,int数据类型就可以存储任何正整数或负整数。本篇文章重点介绍并提供了一种解决方案,以应对我们在Python中使用int数据类型时可能发生的特定错误。修复Python错误AttributeError:‘int’objecthasnoattributeAttributeError是Python代码中可能出现的常见错误之一。本教程处理一个这样的AttributeError,即“int”对象没有属性“A”。这里,A可以是在int对象上使用的任何函数。在继续示例代码并学习如

android - android :launchMode and android:documentLaunchMode attribute?有什么区别

所以我一直在阅读有关任务、返回堆栈和概览屏幕的文档,有一件事让我非常困惑。在阅读了launchMode之后:http://developer.android.com/guide/components/tasks-and-back-stack.html然后关于documentLaunchMode这里:http://developer.android.com/guide/components/recents.html我不知道它们有何不同!两者都被描述为提供控制相对于当前任务(启动Activity的任务)的任务中新Activity的启动的方法。那么这两种模式有何不同呢?追加-document

android - 数据绑定(bind)中的 msg :Cannot find the getter for attribute 'android:text' with value type java. lang.String?

我正在尝试在edittext中使用数据绑定(bind),早上它工作正常但突然出现错误:****/databindingerror****msg:Cannotfindthegetterforattribute'android:text'withvaluetypejava.lang.Stringonandroid.widget.EditText.file:/home/itstym/ApkProjects/Reminder/app/src/main/res/layout/activity_main.xmlloc:20:4-34:40****\databindingerror****第20:4

android - 错误 :Execution failed for task ':app:mergeDebugResources' . > java.lang.ArrayIndexOutOfBoundsException(无错误消息)

你们中有人知道Gradle构建中的这个异常吗?Error:Executionfailedfortask':app:mergeDebugResources'.>java.lang.ArrayIndexOutOfBoundsException(noerrormessage)我的项目运行良好,直到我在一个从SD卡解析MP4文件的新Activity中实现了一个视频播放器。然后我得到了这个异常(exception)。之后我更新了AndroidStudio,清理了项目,重新定位了它,然后重建了它。这一切都没有解决问题。然后我取消注释路径调用,因为发生此错误的情况是因为生成的构建文件路径超过了255

android - 任务 ':CordovaLib:processDebugResources' 执行失败。 > com.android.ide.common.process.ProcessException : Failed to execute aapt

我正在通过测试应用程序学习如何使用Ionic,但我已经遇到这个问题两天了。我一直在寻找可能的解决方案,但没有一个对我有用。当我想在我的安卓手机上测试我的应用程序时,问题就出现了。使用此命令时ioniccordovarunandroid并出现以下错误FAILURE:Buildfailedwithanexception.Whatwentwrong:Executionfailedfortask':CordovaLib:processDebugResources'.com.android.ide.common.process.ProcessException:Failedtoexecuteaa

android - CMake 不使用 add_executable 构建可执行文件

我是CMake的新手,我在使用CMake创建可执行文件时遇到问题。我正在尝试从单个CMakeLists.txt文件构建可执行文件和共享库。我的CMakeLists.txt如下:cmake_minimum_required(VERSION3.4.1)project(TestService)include_directories(src/main/cpp/libs/zlib/include/)add_library(libzSHAREDIMPORTED)set_target_properties(libzPROPERTIESIMPORTED_LOCATION${PROJECT_SOURCE

android - 小部件问题 : BroadcastQueue: Background execution not allowed: receiving Intent

我的应用小部件在升级到targetSDK到28后停止工作。它在旧的targetsdk设备上完美运行。我收到以下错误:W/BroadcastQueue:Backgroundexecutionnotallowed:receivingIntent{act=ch.corten.aha.worldclock.WIDGET_DATA_CHANGEDflg=0x10}toch.corten.aha.worldclock/.WorldClockWidgetProviderW/BroadcastQueue:Backgroundexecutionnotallowed:receivingIntent{act