草庐IT

target-async

全部标签

c# - Android 的 Mono 无法构建 - 找不到 Novell.MonoDroid.CSharp.targets

我按照所有说明进行操作,并成功完成安装。在MonoDevelop中,我去:NewSolution->C#->MonoforAndroid->MonoforAndroidApplication,就像它说的那样。当我去构建它时,MonoDevelop抛出一个错误,说:C:\Users\[NAME]\Documents\Android\HelloAndroid1\HelloAndroid1\HelloAndroid1.csproj:错误:C:\ProgramFiles(x86)\Mono-2.10.8\lib\mono\xbuild\Novell\Novell.MonoDroid.CShar

android - Cordova 3.4.0安装错误-请安装Android Target 19

我正在尝试将android平台添加到我的cordova项目中使用cordovaplatformaddandroid但是,我收到以下错误:Error:PleaseinstallAndroidtarget19(theAndroidnewestSDK).MakesureyouhavethelatestAndroidtoolsinstalledaswell.Run"android"fromyourcommand-linetoinstall/updateanymissingSDKsortools.如消息所示,我已使用android命令安装所有更新。除此之外,我还在我的路径变量中添加了以下内容:%

android - 构建 Android 内核时出错 : "multiple target patterns"

我试图按照Google在thispage上的说明为Nexus5X构建一个新内核构建系统:Ubuntu14.04x86_64目标系统:MTC19T/bullhead(实际上是5X上的任何棉花糖版本)工具链:android-6.0.1_r25/prebuilts/gcc/linux-x86/aarch64/我执行的命令的确切顺序是:$gitclonehttps://android.googlesource.com/kernel/msm$exportARCH=arm64$exportCROSS_COMPILE=aarch64-linux-android-$cdmsm$gitcheckout-

android - AVD 管理器 - API 级别 23 上的 "No system images installed for this target."

我需要测试GoogleMapsAndroidSDKv2,所以我下载了以下SDK:不幸的是,AVD正在抛出消息,没有安装图像。我试图根据许多类似的线程移动system-images的内容,但没有帮助。我的系统图像结构:编辑:我重新安装了Mac并安装了AndroidStudio(AS),我发现,如果我下载带有ASAVD的GoogleAPISystemImage,StandaloneAVD找到它坏了。与GoogleAPI相同:编辑2:在code.google.com上报告LINK如果有人找到解决方案,我将不胜感激。 最佳答案 一周后,我终

java - 错误 :failed to find target with hash string 'android-22'

我看到了一些像过去一样的帖子-但没有一个答案对我有用(比如这个:failedtofindtargetwithhashstring'android-22')。我在我的build.grandle中遇到了这个问题failedtofindtargetwithhashstring'android-22'问题截图:SDK管理器: 最佳答案 在SDKManager中,安装API:22SDK平台。从您的屏幕截图中,您必须向下滚动一点才能到达(API22)。 关于java-错误:failedtofindt

android - 无法运行应用程序 - "The target device does not support the ' run-as'命令”

第一次在Macbook上运行AndroidStudio时出现此错误。该程序无法在我的设备上启动,我只是收到一条崩溃消息。在AndroidStudio上,我得到“目标设备不支持‘run-as’命令”,当我将它插入谷歌时,我没有得到任何结果。我得到一个“了解更多”部分,该部分指向“关于InstantRun”标题下的此链接:https://developer.android.com/studio/run/index.html?utm_medium=android-studio#instant-run.如有任何建议,我们将不胜感激。 最佳答案

android - 运行时判断target是模拟器还是手机

在android中,有没有办法判断运行时使用的是模拟器还是手机?原因:我问是因为我在我的应用程序中使用了opengl,这在模拟器上不起作用。因此,我希望能够在使用模拟器时自动关闭opengl(或从不启动它),这样我仍然可以在模拟器上测试应用程序的其他部分。 最佳答案 if(Build.MANUFACTURER.equals("unknown")){//Emulator}else{//NotEmulator} 关于android-运行时判断target是模拟器还是手机,我们在StackOv

php - android-async-http 上传图片到 php 服务器

我整天都在研究如何将图像从我的应用程序上传到服务器端。我已经完成了移动应用程序方面publicstaticvoidpostImage(StringImageLink){RequestParamsparams=newRequestParams();params.put("uploaded_file[name]","MyImageName");try{params.put("uploaded_file[image]",newFile(ImageLink));}catch(FileNotFoundExceptione){e.printStackTrace();}AsyncHttpClient

Android:如何使用 Async 下载 .png 文件并将其设置为 ImageView?

我有一张.png图像的URL,需要下载该图像并将其设置为ImageView的源。到目前为止我是初学者,所以有几件事我不明白:1)我在哪里存储文件?2)如何在java代码中将其设置为ImageView?3)如何正确覆盖AsyncTask方法?提前致谢,非常感谢任何形式的帮助。 最佳答案 我不确定您是否可以从下载中明确构建png。但是,这是我用来下载图像并将它们显示到Imageviews中的方法:首先,你下载图片:protectedstaticbyte[]imageByter(Contextctx,Stringstrurl){try{U

java - 安卓 : JSON Parser with async task (GET and POST methods)

只是想检查这个带有异步任务的JSONParser是否正确完成?当我将此代码放入我的Eclipse时,此(method.equals("POST")带有红色下划线。它声明无法解决“方法”。对此有任何建议或帮助吗?谢谢。publicclassJSONParser{staticInputStreamis=null;staticJSONObjectjObj=null;staticStringjson="";Stringurl=null;Listnvp=null;//constructorpublicJSONParser(){}//functiongetjsonfromurl//bymaking