android開発は初めてで何の知見もないのですが、現在こちらのサンプルアプリを見てみたくて環境構築とビルドを行っております。
https://www.smbc-card.com/steradevelopers/start/terminal.jsp
上記の指示書通りに環境構築をしたのですが、いざビルドしようとするとアプリが強制的に落ちてしまい、以下のログが出てしまいます。
Capturing and displaying logcat messages from application. This behavior can be disabled in the "Logcat output" section of the "Debugger" settings page. D/ApplicationLoaders: Returning zygote-cached class loader: /system/framework/android.test.base.jar I/.posapp.omusub: The ClassLoaderContext is a special shared library. D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/NetworkSecurityConfig: No Network Security Config specified, using platform default D/libEGL: loaded /vendor/lib/egl/libEGL_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv1_CM_emulation.so D/libEGL: loaded /vendor/lib/egl/libGLESv2_emulation.so W/.posapp.omusub: Accessing hidden method Landroid/view/View;->computeFitSystemWindows(Landroid/graphics/Rect;Landroid/graphics/Rect;)Z (greylist, reflection, allowed) W/.posapp.omusub: Accessing hidden method Landroid/view/ViewGroup;->makeOptionalFitsSystemWindows()V (greylist, reflection, allowed) D/MainActivity: A file needed already exists in the terminal. I/chatty: uid=10153(com.panasonic.sample.posapp.omusubi) identical 4 lines D/MainActivity: A file needed already exists in the terminal. isFileName =false A file needed already exists in the terminal. D/OmusubiCustomerDisplay: [in] constructor mDisplayType=welcome D/OmusubiCustomerDisplay: application package name =com.panasonic.sample.posapp.omusubi [out] constructor D/PaymentApiConnection: [in] initializePaymentApi() V/PaymentApi: [PaymentApi] enter. V/PaymentApi: [PaymentApi] exit. [init] enter. E/PaymentApi: failure to connect service. D/AndroidRuntime: Shutting down VM E/AndroidRuntime: FATAL EXCEPTION: main Process: com.panasonic.sample.posapp.omusubi, PID: 10748 java.lang.RuntimeException: Unable to resume activity {com.panasonic.sample.posapp.omusubi/com.panasonic.sample.posapp.omusubi.posapp_sample.MainActivity}: java.lang.IllegalStateException: bindService failed at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4444) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947) Caused by: java.lang.IllegalStateException: bindService failed at com.panasonic.smartpayment.android.api.PaymentApi.init(PaymentApi.java:120) at com.panasonic.sample.posapp.omusubi.posapp_sample.paymentapi.PaymentApiConnection.initializePaymentApi(PaymentApiConnection.java:71) at com.panasonic.sample.posapp.omusubi.posapp_sample.MainActivity.onResume(MainActivity.java:241) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1456) at android.app.Activity.performResume(Activity.java:8135) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:4434) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:4476) at android.app.servertransaction.ResumeActivityItem.execute(ResumeActivityItem.java:52) at android.app.servertransaction.TransactionExecutor.executeLifecycleState(TransactionExecutor.java:176) at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:97) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2066) at android.os.Handler.dispatchMessage(Handler.java:106) at android.os.Looper.loop(Looper.java:223) at android.app.ActivityThread.main(ActivityThread.java:7656) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:592) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:947)
Android Manifest.xmlがおかしいと思っているのですが、permissionは指示書通りに設定しております。
<!-- Permission for PaymentAPI --> <uses-permission android:name="com.panasonic.smartpayment.android.api.permission.HLAPI" />
基本的なことであったらすみませんが、ご教授いただけると嬉しいです。
よろしくお願いします。
あなたの回答
tips
プレビュー