jjzjj

implementation

全部标签

Android RecyclerView : Abstract method not implemented

滑动以从Recyclerview中删除项目时应用程序崩溃。错误日志如下。它以前工作现在更新到com.android.support:recyclerview-v7:23.1.0和recyclerview-animators-1.2.2.jar。现在它崩溃了,请帮助我。提前致谢。FATALEXCEPTION:mainProcess:com.timecard,PID:2876java.lang.AbstractMethodError:abstractmethodnotimplementedatandroid.support.v7.widget.RecyclerView$ItemAnimat

android - 依赖项是最新的,但 Gradle 认为不是

当我使用最新且相同的版本时,为什么Gradle会给出有关依赖项的错误?今天才刚刚开始,我不知道如何解决这个问题:Allcom.android.supportlibrariesmustusetheexactsameversionspecification(mixingversionscanleadtoruntimecrashes).Foundversions28.0.0,26.1.0.Examplesincludecom.android.support:animated-vector-drawable:28.0.0andcom.android.support:support-media-

android - 迁移到 AndroidX

好吧,我从一年前的项目开始迁移到AndroidX(从那时起就没有动过),我在资源和gradle构建方面遇到了问题。我完全迷失了新的命名空间,我改变了其中的一些,我升级了AndroidStudio告诉我的所有东西,但仍然无法识别我项目中的东西。我将在此处粘贴两个gradle,并将错误放在下方。//Top-levelbuildfilewhereyoucanaddconfigurationoptionscommontoallsub-projects/modules.buildscript{repositories{google()jcenter()mavenCentral()}depende

android - 获取 "Cause: failed to decrypt safe contents entry: javax.crypto.BadPaddingException: Given final block not properly padded"

我正在尝试测试LibGDX开发,但我在尝试让最基本的应用程序在我的Android手机上运行时遇到错误,因为我的keystore或它的使用方式存在问题,而且我我不确定到底是什么问题。在更详细地描述问题和我尝试过的方法之前,我将首先描述一些关于我的环境的事情:我正在使用:-`AndroidStudio3.1.4,`with-`Gradle4.6`insideofit,myosis-`LinuxMint18.1(Serena)(whichisbasedon...-`Ubuntu16.04`,mykernelis-`Linux4.4.0-53-generic`.为了解决这个问题,我多次生成新的

LLaMA-Factory使用V100微调ChatGLM2报错 RuntimeError: “addmm_impl_cpu_“ not implemented for ‘Half‘

微调命令CUDA_VISIBLE_DEVICES=0python/aaa/LLaMA-Factory/src/train_bash.py\--stagesft\--model_name_or_path/aaa/LLaMA-Factory/models/chatglm2-6b\--do_train\--datasetbbbccc\--templatechatglm2\--finetuning_typelora\--lora_targetquery_key_value\--output_diroutput/dddeee/\--overwrite_cache\--per_device_train_b

android - Google Play 游戏服务警报 : "Detected incorrect implementation"

我最近在GooglePlayDeveloperConsole中收到了关于我的游戏的以下警告:DetectedincorrectimplementationYourgamehasincorrectlyimplementedthefollowingPlayGamesservices:Achievements.它提供了指向ahelppage的链接但该页面仅提供以下信息:DetectedincorrectimplementationThisgamehasimplementedinvitationsbutdoesn'tallowuserstojoinamatchfromaninvitation.

android - Superpowered SDK : Implementing SuperpoweredRecorder. h 和设置录制路径

我已成功将SuperpoweredSDKCrossExample项目导入到androidstudio中,并在SamsunggalaxyS3和模拟器上对其进行了测试。现在我正在实现一个录制选项,以使用SuperpoweredRecorder.h录制应用程序播放的音频。我需要有关如何正确设置*tempPath和*destinationPath变量以成功保存记录的帮助。该项目构建正常,但当我尝试在GalaxyS3或模拟器上运行该应用程序时,我收到以下错误消息:19565-19565/com.superpowered.crossexampleA/libc:0x006f0070(code=1)处

java - 错误 : "class must implement abstract method X", 但它已经发生了

我有这个抽象父类(superclass):publicabstractclassMediaListActivityextendsActivity{...abstractvoidlaunchMedia(MediaFilemediaFile);}和具体的子类:publicclassVideoListActivityextendsMediaListActivity{...voidlaunchMedia(MediaFilemediaFile){//TODO:implementlaunchMedia()}}在VideoListActivity子类的第一行,AndroidStudio报错Class

java - 尝试生成 apk 时,android studio 中 livedata$1.class 出现重复输入错误

关闭。这个问题需要debuggingdetails.它目前不接受答案。编辑问题以包含desiredbehavior,aspecificproblemorerror,andtheshortestcodenecessarytoreproducetheproblem.这将有助于其他人回答问题。关闭4年前。Improvethisquestion我真的不知道是什么导致了这个错误以及如何解决它我所有的依赖:implementationfileTree(dir:'libs',include:['*.jar'])implementation'com.android.support:appcompat-

android - 在 Android 中实现 Material Design 时出错

我一直在阅读新Material设计网站,但我在实现它时遇到了问题。我目前正在使用的应用程序是一个简单的测试应用程序,只有一个按钮和一些TextView。在gradle文件中放置implementation'com.google.android.material:material:1.0.0-alpha1'后出现问题。这是我的build.gradle(app)文件applyplugin:'com.android.application'applyplugin:'io.fabric'android{compileSdkVersion27defaultConfig{applicationId