草庐IT

illegal_argument_excep

全部标签

java - 安卓工作室 "Could not find method implementation() for arguments"

我是AndroidStudio和Gradle的新手,所以请具体说明您的建议。我下载了thisgit存储库,因为我需要一个集成了OCR的应用程序模板。该项目是在Eclipse中构建的,因此我使用AndroidStudio导入工具将其转换为AndroidStudio项目。在尝试构建项目并通过单击错误中的链接解决前几个错误后,我收到了“无法找到方法实现()”错误,我似乎无法解决。注意-我今天才安装了AndroidStudio,所以我更新了所有内容。这是我的build.gradle文件的样子://Top-levelbuildfilewhereyoucanaddconfigurationopti

android - 文件名字符导致打开失败 : EINVAL (Invalid argument)

我想用以下格式的文件名创建一个文件:DAY-MONTH-YEAR--HOUR:MINUTE但是当我使用--或/and:我遇到了openfailed:EINVAL异常。我试图摆脱这些焦炭,但没有快乐。是否有任何禁止的文件名字符列表?Stringtime=String.valueOf(c.get(Calendar.DAY_OF_MONTH))+"-"+String.valueOf(c.get(Calendar.MONTH)+1)+"-"+String.valueOf(c.get(Calendar.YEAR))+"--"+String.valueOf(c.get(Calendar.HOUR)

c# - : Error CS1729: 'SQLiteConnection' does not contain a constructor that takes 1 arguments (CS1729)

有没有人知道如何解决这个错误消息错误CS1729:“SQLiteConnection”不包含采用1个参数的构造函数(CS1729)这是发生的文件usingSystem;usingSystem.Collections.Generic;usingSystem.Linq;usingSystem.Text;usingAndroid.App;usingAndroid.Content;usingAndroid.OS;usingAndroid.Runtime;usingAndroid.Views;usingAndroid.Widget;usingSQLite;usingAndroid.Util;us

android ndk开发问题: 'Invalid arguments' error for memcpy function

我为android项目使用了c++代码,所以我使用了NDK工具。IDE是eclipse。编译项目时,memcpy函数出现错误:Invalidarguments'Candidatesare:void*memcpy(void*,constvoid*,?)'对于malloc,strftime也是如此。我是在Windows系统下开发的。为什么?这是我的部分代码:#include#include#include#include#include"dirent.h"#include#include#include#include#includestringgetCurrentDate(){time_

android - 如何使用 Dagger 2 以最少的样板访问 ViewModel 中的 Arguments/Extras Bundle?

我正在将我的应用程序转换为使用ViewModel。为了实例化ViewModel,我使用自定义Factory和Dagger2进行依赖注入(inject)。它看起来像这样:@SingletonclassViewModelFactory@Injectconstructor(privatevalviewModels:Map,@JvmSuppressWildcardsProvider>):ViewModelProvider.Factory{overridefuncreate(modelClass:Class):T=viewModels[modelClass]!!.get()asT}@Target

Android studio:Could not find method compile() for arguments 问题解决及两种解决方法探讨延伸

Couldnotfindmethodcompile()forarguments问题全称Couldnotfindmethodcompile()forarguments[org.tensorflow:tensorflow-lite:+]onobjectoftypeorg.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.如图解决方法1(简单)将compile改为implementation即可,如图参考博客couldnotfindmethodcompile()forarguments解决方法2(进阶)将c

android - Equalizer.usePreset 抛出 Invalid argument 异常

我正在创建带有EQ的mediaPlayer,当我设置EQ频段时它工作正常。我有列出所有预设的代码,在更改时我想将预设设置为EQ,但我得到了错误的参数值。这是我在日志中的内容:09-2914:29:24.810:W/System.err(27829):java.lang.IllegalArgumentException:AudioEffect:badparametervalue09-2914:29:24.835:W/System.err(27829):atandroid.media.audiofx.AudioEffect.checkStatus(AudioEffect.java:1259

android - java.lang.IllegalArgumentException : Illegal URL with retrofit 异常

我正在尝试在我的应用程序中调用一个API我有以下网址模板test-test.domainname.com/feeds/json/v3/attribute/attribute我正在使用改造2但我得到以下致命异常IllegalURL:test-test.domainname.com这是我的界面publicinterfaceIinterface{@GET("feeds/json/v3/attribute/"+attribute)Call>getresult();}谁能帮我解决这个问题... 最佳答案 我的基本URL在这里:http://m

java - Camera2API : Session has been closed; further changes are illegal

我正在使用Camera2API构建相机Activity,该Activity将拍摄的图像发送到另一个Activity。在某些设备上它可以工作,但在其他(较慢的设备)上我得到一个java.lang.IllegalStateException,它说“session已关闭;进一步的更改是非法的”。我在这一行(在updatePreview()中)得到这个异常:cameraCaptureSessions.setRepeatingRequest(captureRequestBuilder.build(),null,mBackgroundHandler);这是我的完整代码:publicclassNew

java.lang.IllegalArgumentException : Illegal character in authority at index 7 while making https request 异常

从Android模拟器向我的本地wamp服务器发出http请求时出现上述错误。//testingonEmulator:privatestaticfinalStringLOGIN_URL="http://10.0.2.2:80/webservice/login.php";//request:JSONObjectjson=jsonParser.makeHttpRequest(LOGIN_URL,"POST",params); 最佳答案 您的字符串LOGIN_URL的索引7处有一个空格,它导致了异常。应该是这样的。LOGIN_URL="h