我的Titanium Android應用程序出現問題。該應用在iOS中正常工作,但在Android中無法正常工作。啓動android應用程序時出錯(鈦框架)
我得到以下錯誤:
V8Object: (KrollRuntimeThread) [88,88] Runtime disposed, cannot set property 'userAgent'
[INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasCameraPermission
[INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasStoragePermission
[WARN] : dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
[WARN] : dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
[INFO] : dalvikvm: Could not find method android.app.Activity.checkSelfPermission, referenced from method ti.modules.titanium.media.MediaModule.hasCameraPermissions
[WARN] : dalvikvm: VFY: unable to resolve virtual method 27: Landroid/app/Activity;.checkSelfPermission (Ljava/lang/String;)I
[INFO] : dalvikvm: Could not find method android.app.Activity.requestPermissions, referenced from method ti.modules.titanium.media.MediaModule.requestCameraPermissions
[WARN] : dalvikvm: VFY: unable to resolve virtual method 80: Landroid/app/Activity;.requestPermissions ([Ljava/lang/String;I)V
[WARN] : dalvikvm: threadid=10: thread exiting with uncaught exception (group=0x41fe92a0)
任何人可以幫助我幫助我嗎?
下次嘗試格式化您的問題,也許你會得到更多的幫助。 – ServAce85
你有沒有解決這個我有一個類似的問題http://stackoverflow.com/questions/35229521/appcelerator-could-not-find-method-android-app-activity-checkselfpermission – user1503606
是的,我解決這個問題是關於主題Holo.Light.I將主題更改爲Theme.AppCompat並開始工作。第二個問題是關於在API 23中的權限安裝。我在22上設置了目標SDK及其工作。 –