草庐IT

method_descriptor

全部标签

android - CrashlyticsCore : Cannot invoke method: registerOnMeasurementEventListener

我已经安装了androidfirebase性能库,我可以在仪表板中看到应用程序速度等,但网络请求监控似乎不起作用。我在logcat中收到此错误:W/CrashlyticsCore:Cannotinvokemethod:registerOnMeasurementEventListenerjava.lang.reflect.InvocationTargetExceptionatjava.lang.reflect.Method.invoke(NativeMethod)atcom.crashlytics.android.core.DefaultAppMeasurementEventListen

android - SoapFault - 故障代码 : '1062' faultstring: 'Shipping method is not available'

你好,我正在开发一个使用Magento作为后端的Android应用程序,我正在使用magento的SOAPwebervice,我已经将所有产品、客户和客户地址信息添加到购物车,但是当我尝试添加运输方式时到购物车,我收到这个错误SoapFault-错误代码:'1062'错误字符串:'送货方式不可用'这是我正在尝试的代码,请帮我解决这个问题SoapObjectavailableShippingMethods=newSoapObject(MAGENTO_NAMESPACE,"shoppingCartShippingList");availableShippingMethods.addProp

java.lang.NullPointerException : Attempt to invoke virtual method 'android.view.View .MainActivity.findViewById(int)' on a null object reference 异常

我有一个名为MainActivity.java的类,它调用一个AsyncTask类。最后一个类有一个findViewById()在执行时返回这个错误:java.lang.NullPointerException:Attempttoinvokevirtualmethod'android.view.View.MainActivity.findViewById(int)'onanullobjectreference我不明白如何在AsyncTask完成工作后编辑位于R.layout.activity_main中的ImageView。MainActivity.javapublicclassMai

安卓NDK : calling java method from JNI C class

我有JNI方法,我正在尝试调用Java方法。这是我的JNI代码voidDummySink::afterGettingFrame(unsignedframeSize,unsignednumTruncatedBytes,structtimevalpresentationTime,unsigned/*durationInMicroseconds*/){__android_log_print(ANDROID_LOG_VERBOSE,"RTSP","Frame:%c",propRec->sPropBytes);jmethodIDmid;jclasshandlerClass=env9->FindC

java.lang.NullPointerException : Attempt to invoke virtual method 'android.view.View android.app.Activity.findViewById(int)' on a null object reference 异常

我的Android项目总是出错。java.lang.NullPointerException:Attempttoinvokevirtualmethod'android.view.Viewandroid.app.Activity.findViewById(int)'onanullobjectreference在我的MainActivity中,我调用了FragmentStart类。FragmentStart.classimportandroid.app.Activity;importandroid.content.Intent;importandroid.os.Bundle;importa

android - 空指针异常 : Attempt to invoke virtual method 'int java.util.ArrayList.size()' on a null object reference

我是Fragments和自定义ListView适配器的新手。谁能帮帮我吗?我有我的Fragment我有我的ListViewpublicclassRecordingListFragmentextendsFragmentimplementsOnItemClickListener{ListViewmListView;TextViewemptyView;Buttonoptions,delete,edit;ArrayListrecordings=null;RecordingsListAdaptermAdapter;publicRecordingListFragment(){}@Overridep

Android 4.4.2 & 软键盘。选项菜单是可能的?发生 "Unimplemented WebView method onKeyDown called from"

有人发布了这个....在4.4.2(api级别19)中,当使用软(软件)键盘时,WebView不再正确接收javascript中的按键事件。未调用javascript函数。我已经在模拟器和Nexus4上确认了这一点运行4.4.2.我附上了一个示例网页。对于模拟器,LogCat会显示这些指示问题的消息:04-0723:59:22.613:E/chromium(2271):[ERROR:immediate_input_router.cc(507)]Weseemtohaveadifferentkeytypesentfromtherenderer.(7vs.10).Ignoringevent.

android - java.lang.IllegalAccessError : Method 'void android.support.v4.content.ContextCompat.' is inaccessible to class 'com.google.android.gms.iid.zzd' 错误

当我将我的目标sdk级别从23.0.2更改为25.0.1时。我的应用程序在以下行崩溃。我应该怎么做才能避免这次崩溃?请提出更改建议。InstanceIDinstanceID=InstanceID.getInstance(getContext());错误日志:AndroidRuntime:FATALEXCEPTION:AsyncTask#2Process:com.tuitoapp.admin,PID:19012java.lang.RuntimeException:AnerroroccuredwhileexecutingdoInBackground()Causedby:java.lang.

android - java.lang.NullPointerException : Attempt to invoke virtual method 'java.io.File com.parse.ParsePlugins.getParseDir()' on a null object reference 异常

试图从Parse加载一个类,但是应用程序在我启动它时崩溃了!这是代码:ListViewlistview;Listob;ProgressDialogmProgressDialog;ArrayAdapteradapter;@OverrideprotectedvoidonCreate(BundlesavedInstanceState){super.onCreate(savedInstanceState);setContentView(R.layout.activity_big_board);newRemoteDataTask().execute();}privateclassRemoteDa

android - 如何在不出现 "cannot make a static reference to the non static method"编译器错误的情况下使用 runOnUiThread

我有一个主类;ClientPlayerextendsActivity{和服务LotteryServerextendsServiceimplementsRunnable{尝试在此服务的运行方法中使用RunOnUiThread时出现编译器错误,“无法对非静态方法进行静态引用”如何解决这个问题?这里显示了我如何使用代码;@Overridepublicvoidrun(){//ItriedbothClientPlayer.runOnUiThreadandLotteryServer.runOnUiThread//bothdon'tworkClientPlayer.runOnUiThread(new