草庐IT

target_field

全部标签

java - Field.getGenericType() 返回 java.lang.Class 的实例而不是 Type

我遇到了混淆器和一些反射问题。Myclass.javapackagenot.obfuscatedclassMyClass{publicListchilds;}InnerClass.javapackagenot.obfuscatedclassInnerClass{//.somestuff}在proguard.cfg里面我有:-keepclassnot.obfuscated.**{*;}在另一个类中,我设法获取MyClass.childs字段的“Field”实例,然后尝试获取getGenericType以确定列表括号内的类()出于日志目的,我执行了以下Log.d代码(field是表示MyC

android - key android :target_state 的 fragment 不再存在

我想我也有同样的问题here但没有答案。我有一个带有ViewPager和FrameLayout的Activity,其中将包含一个fragment。它看起来像这样:Activity|—ViewPager|-FragmentA|—Framelayout|—FragmentB|—FragmentC(hereIcalledfragmentC.setTargetFragmentmethod).当我旋转设备时。我会得到这个错误:E/AndroidRuntime(10354):Causedby:java.lang.IllegalStateException:Fragmentnolongerexist

android - java.exe 已退出,代码为 2 (MSB6006) 无法写入输出 : Too many field references: 81626; max is 65536

我正在开发xamarinandroid应用程序,并在其中使用了许多包和引用(Googleplay服务)。当我尝试构建此项目时出现此错误:java.exeexitedwithcode2Troublewritingoutput:Toomanyfieldreferences:81626;maxis65536.Youmaytryusing--multi-dexoption. 最佳答案 您需要启用Mutlidex在你的项目中。Xamarin.Android自version5.1起支持此功能:Multi-dexsupportcanbeenabl

android studio ndk 错误 : *** target pattern contains no `%' . 停止

我已经关注了这个link将ndk集成到我的项目中。但是在完成设置后,编译时会出现此错误。请帮我解决这个错误。使用安卓工作室v0.5.7ndkandroid_ndk_r9b 最佳答案 请切换到最新的Android-NDK(在我的例子中是android-ndk-r10e)。我在使用以下配置时遇到了这个问题-Eclipseluna、AndroidSDK和Android-ndk-r9b。当我更新NDK时,问题已解决。 关于androidstudiondk错误:***targetpatternco

Android Market 说我的应用程序是 "not in targeted group"或 "cannot be installed on this device"

从昨天早上开始我就一直在思考这个问题。直接网页出现,但我的应用程序未出现在搜索中。在我的2.1手机上,应用程序页面显示“此设备无法安装此项目”。我使用2.2/2.3手机的friend得到“你不在这个项目的目标组中。”免费应用复制保护:关闭内容分级:所有人支持的设备:所有国家市场开发者产品详情显示:Screenlayouts:SMALLNORMALLARGEXLARGERequireddevicefeaturesandroid.hardware.telephonyandroid.hardware.touchscreenThisapplicationisavailabletoover720

安卓 NDK/JNI : "No rule to make target" error when compiling my hybrid iOS/Android project

在完成“makeclean”(执行makefile的内容)后,我正在尝试编译我的iOS/Android混合项目(使用build_native.sh)。我实际上是按照本教程中描述的步骤操作的:http://gameit.ro/2012/01/creating-an-iphone-and-android-cocos2d-x-hybrid-project-updated/#comment-635但是在尝试编译时出现以下错误:**Noruletomaketargetjni/../../libs/cocos2dx/platform/CCFileUtils.cpp',需要obj/local/arm

android - 在不将 target-densitydpi 设置为 device-dpi 的情况下防止 Android 浏览器旋转缩放

现在我正在使用以下视口(viewport)元标记:就默认易读性而言,中等dpi缩放比例似乎获得了最佳结果。在大多数页面上,当我在纵向和横向之间旋转时,缩放保持在那个级别,但是,在我有方向媒体查询的页面上,触发了更高的缩放级别,这是不希望的。我知道这可以通过使用target-densitydpi=device-dpi来解决,但是在高分辨率Android手机上这看起来不太好,所以我d更愿意保留target-densitydpi=medium-dpi。我认为上述元标记应该将缩放比例锁定在中dpi是否正确?另外,有没有办法阻止如上所述的旋转缩放/缩放? 最佳答案

Android java.lang.IllegalArgumentException : no char field 'exponential' in android 2. 3

我想使用文件系统来存储和检索数据。我的代码在android4.1和4.4等最新版本中运行良好。但它不起作用,它在android2.3中给出错误。我从其他类写对象,对象是Arraylist,也从同一个类中读取对象。请帮我。提前致谢。我的类如下。packagecom.app.utils;importjava.io.File;importjava.io.FileInputStream;importjava.io.FileOutputStream;importjava.io.IOException;importjava.io.ObjectInputStream;importjava.io.Ob

java - 强制 GSON 一般使用包含 Setter 或 Setter 的构造函数,而不是 Fields

假设我有以下模型类:publicclassProduct{privateintProductId;privateStringName;publicProduct(){setProductId(0);setName("");}//GetterandSetterfortheProduct-IDpublicvoidsetProductId(inti){if(i>=0){ProductId=i;}else{ProductId=0;}}publicintgetProductId(){returnProductId;}//GetterandSetterfortheNamepublicvoidset

android - Zygote The String#value field is not present on Android versions >= 6.0 Android 错误

我正在使用GoogleAPI构建map应用程序。我收到此错误:E/zygote:Android版本>=6.0上不存在String#value字段我不知道如何摆脱它。我搜索了所有网站,包括:TheString#valuefieldisnotpresentonAndroidversions>=6.0也没有发布解决方案。但我没有使用任何类型的火力基地。如果能提供任何帮助,我将不胜感激。错误的Logcat:com.google.android.gms.maps_dynamite的选定远程版本,版本>=22007-0321:40:15.34622106-22106/com.example.sis