草庐IT

files-from

全部标签

java - 安卓工作室 : cannot read packageName from manifest

大家好(这是我的第一个问题,请不要无礼)。我是编码初学者,我在AndroidStudio中遇到过这个错误:“Gradleprojectsyncfailed”,错误是“Error:CannotreadpackageNamefrom/Users/sgrumo/Downloads/gvr-android-sdk-master/samples/sdk-treasurehunt/src/main/AndroidManifest.xml”我的list如下:build.gradle:applyplugin:'com.android.application'android{compileSdkVers

安卓开发 : How do I extract data from the web and use the data in my app?

我看到了这个名为LyricsApp的Android应用程序。它提供当前播放的歌曲的歌词,但始终需要互联网连接。现在,我想做一个类似的应用程序,它第一次从网络上获取歌词,然后将其保存到我的安卓设备上,这样下次播放歌曲时,它就会从设备上获取歌词网络..不需要持续的互联网连接。我已经搜索过了,但找不到适合我的案例的。我检查了webview,但我认为它只是用于显示网页内容,而不是提取。我是新手,所以请多多包涵。 最佳答案 尝试...DefaultHttpClienthttpClient=newDefaultHttpClient();Http

android - 是什么导致 "RuntimeException: Binary XML file line #20: You must supply a layout_height attribute."(怀疑是ActionBarSherlock)?

我有带ActionBarScherlock的应用程序,我使用ACRA。我收到一些用户的崩溃报告,其中包含以下错误:"java.lang.RuntimeException:BinaryXMLfileline#20:Youmustsupplyalayout_heightattribute.atandroid.content.res.TypedArray.getLayoutDimension(TypedArray.java:491)atandroid.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:3602)atand

android - Xamarin proguard.ParseException : Unknown option '' in line 1 of file 'Properties/proguard.cfg'

我正在尝试将混淆器与Xamarin一起使用。所以我在项目选项中启用它(选中EnableProGuard),并在Properties中创建了一个文件proguard.cfg,(作为新的文本文件,对吗?)并检查了BuildAction->ProguardConfigurationproguard文件只包含一个-keep配置,带有注释。无论我是留下还是删除评论,我总是在第1行收到解析错误:#testcomment-keepclass!android.support.v7.view.menu.**,!android.support.design.internal.NavigationMenu,

android - 运行时异常 : Binary XML file line #17: You must supply a layout_height attribute whie showing the popupmenu

publicvoidshowPopup(intgroup,intimg_index,JSONArrayjson_ar,Viewv){PopupMenupm=newPopupMenu(EditPhotosActivity.this,v);pm.getMenuInflater().inflate(R.menu.popup_menu,pm.getMenu());pm.setOnMenuItemClickListener(newPopupMenu.OnMenuItemClickListener(){@OverridepublicbooleanonMenuItemClick(MenuItemit

git使用中出现:git fatal: index file smaller than expected

文章目录git使用中出现:gitfatal:indexfilesmallerthanexpectedgit使用中出现:gitfatal:indexfilesmallerthanexpectedgit的索引文件损坏了,删除对应的索引文件重建即可rm-rf.git/indexgitresetHEAD.

android - 将 android.graphics.Bitmap 转换为 java.io.File

我想像这样使用分段上传将编辑后的位图图像上传到服务器,multipartEntity.addPart("ProfilePic",newFileBody(file));但我无法将Bitmap(android.graphics.Bitmap)图像转换为File(java.io.File)。我试图将它转换为字节数组,但它也没有用。有人知道android的内置功能或任何将位图转换为文件的解决方案吗?请帮忙... 最佳答案 应该这样做:privatestaticvoidpersistImage(Bitmapbitmap,Stringname)

android - 原因 : com. android.dex.DexException : Multiple dex files define Lorg/apache/commons/io/IOCase in Studio 3. 0

我正在开发一个项目。这在Androidstudio2.3.3上运行良好,但是当我更新我的AndroidStudio3.0时会发生什么?然后打开我的项目,然后它无法组装,并在错误日志下方发送给我。错误日志Error:Errorconvertingbytecodetodex:Cause:com.android.dex.DexException:MultipledexfilesdefineLorg/apache/commons/io/IOCase;Error:com.android.dex.DexException:MultipledexfilesdefineLorg/apache/comm

安卓.view.InflateException : Binary XML file line #7: Error inflating class

我在尝试运行我的项目时收到错误消息。我想为Android创建TicTacToe,我使用下面的自定义View来创建TicTacToe棋盘:packageorg.me.TicTacToe.ui;importandroid.content.Context;importandroid.graphics.Canvas;importandroid.graphics.Paint;importandroid.graphics.Paint.Style;importandroid.view.MotionEvent;importandroid.view.View;publicclassTicTacToeBo

android - 打 "No Response From Server"。不确定为什么会收到此错误

我在本地机器上设置了一个openfire服务器。我正在尝试连接此服务器,但出现“服务器无响应”错误。不确定为什么?我在成功连接到服务器的同一台机器上安装了spark客户端。你能帮我找出问题所在吗?以下是可能有帮助的日志详细信息07-3001:01:02.570:I/System.out(424):01:01:02AMSENT(1156489960):07-3001:01:02.593:I/System.out(424):01:01:02AMRCV(1156489960):DIGEST-MD5PLAIN07-3001:01:02.593:I/System.out(424):01:01:0