رفتن به مطلب
  • 0

مشکل در متوقف کردن برنامه


androidyas

سوال

با سلام از یک اموزش موزیک پلیر انلاین رو خریداری کردم

تا یک قسمت ک اموزش رفت منم رفتم مو به موهیچ خطایی ندارد ولی برنامه استپ میشه متن لوگ کت هم میزارم استادید ببنید میدونید مشکل کجاست باتشکر.

-------------------------

08-31 07:54:36.547 1628-1628/ovh.vpssd.music22.music E/AndroidRuntime: FATAL EXCEPTION: main
                                                                       android.support.v4.app.SuperNotCalledException: Fragment PagerFragment{52772870 id=0x7f0c007c android:switcher:2131492988:0} did not call through to super.onCreate()
                                                                           at android.support.v4.app.Fragment.performCreate(Fragment.java:1941)
                                                                           at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1029)
                                                                           at android.support.v4.app.FragmentManagerImpl.performPendingDeferredStart(FragmentManager.java:926)
                                                                           at android.support.v4.app.Fragment.setUserVisibleHint(Fragment.java:879)
                                                                           at android.support.v4.app.FragmentPagerAdapter.setPrimaryItem(FragmentPagerAdapter.java:130)
                                                                           at android.support.v4.view.ViewPager.populate(ViewPager.java:1104)
                                                                           at android.support.v4.view.ViewPager.populate(ViewPager.java:952)
                                                                           at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
                                                                           at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
                                                                           at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
                                                                           at android.support.v7.widget.ContentFrameLayout.onMeasure(ContentFrameLayout.java:135)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
                                                                           at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
                                                                           at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.LinearLayout.measureChildBeforeLayout(LinearLayout.java:1404)
                                                                           at android.widget.LinearLayout.measureVertical(LinearLayout.java:695)
                                                                           at android.widget.LinearLayout.onMeasure(LinearLayout.java:588)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5012)
                                                                           at android.widget.FrameLayout.onMeasure(FrameLayout.java:310)
                                                                           at com.android.internal.policy.impl.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2189)
                                                                           at android.view.View.measure(View.java:15848)
                                                                           at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:1905)
                                                                           at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1104)
                                                                           at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1284)
                                                                           at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1004)
                                                                           at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5481)
                                                                           at android.view.Choreographer$CallbackRecord.run(Choreographer.java:749)
                                                                           at android.view.Choreographer.doCallbacks(Choreographer.java:562)
                                                                           at android.view.Choreographer.doFrame(Choreographer.java:532)
                                                                           at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:735)
                                                                           at android.os.Handler.handleCallback(Handler.java:730)
                                                                           at android.os.Handler.dispatchMessage(Handler.java:92)
                                                                           at android.os.Looper.loop(Looper.java:137)
                                                                           at android.app.ActivityThread.main(ActivityThread.java:5103)
                                                                           at java.lang.reflect.Method.invokeNative(Native Method)
                                                                           at java.lang.reflect.Method.invoke(Method.java:525)
                                                                           at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:737)
                                                                           at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
                                                                           at dalvik.system.NativeStart.main(Native Method)
08-31 07:54:38.623 1628-1628/? I/Process: Sending signal. PID: 1628 SIG: 9

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

7 پاسخ به این سوال تاکنون داده شده است

ارسال‌های توصیه شده

دوست عزیز متد super رو استفاده نکردین تو اولین خط بعد از متد onCreate مربوط به فرگمنت این رو اشافه کنید

 super.onCreate(savedInstanceState);

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

در 10 ساعت قبل، محمدرضا شاهپیری گفته است :

دوست عزیز متد super رو استفاده نکردین تو اولین خط بعد از متد onCreate مربوط به فرگمنت این رو اشافه کنید


 super.onCreate(savedInstanceState);

دوست عزیز در کودوم قسمت کودوم اکتیویتی

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

هموطن شما تو برنامه از فرگمنت استفاده کردید ولی متد سوپرش رو تو قسمت oncreate صدا نزدین

ببینید تو کدوم فرگمنت این کار رو کردین

لینک ارسال
به اشتراک گذاری در سایت های دیگر

دوستان استاد گرامی

09-01 09:31:54.743 428-483/system_process W/NetworkManagementSocketTagger: setKernelCountSet(10023, 0) failed with errno -1
09-01 09:32:05.071 17821-17846/ovh.vpssd.music22.music W/System.err: java.net.UnknownHostException: Unable to resolve host "vpsssd.ovh": No address associated with hostname
09-01 09:32:05.071 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.net.InetAddress.lookupHostByName(InetAddress.java:424)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.net.InetAddress.getAllByNameImpl(InetAddress.java:236)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.net.InetAddress.getAllByName(InetAddress.java:214)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpConnection.<init>(HttpConnection.java:70)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpConnection.<init>(HttpConnection.java:50)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpConnection$Address.connect(HttpConnection.java:340)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpConnectionPool.get(HttpConnectionPool.java:87)
09-01 09:32:05.075 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpConnection.connect(HttpConnection.java:128)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpEngine.openSocketConnection(HttpEngine.java:316)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpEngine.connect(HttpEngine.java:311)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpEngine.sendSocketRequest(HttpEngine.java:290)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpEngine.sendRequest(HttpEngine.java:240)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpURLConnectionImpl.connect(HttpURLConnectionImpl.java:81)
09-01 09:32:05.079 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.net.http.HttpURLConnectionImpl.getOutputStream(HttpURLConnectionImpl.java:197)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at ovh.vpssd.music22.music.Splash.GetJsonData_(Splash.java:129)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at ovh.vpssd.music22.music.Splash.access$100(Splash.java:30)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at ovh.vpssd.music22.music.Splash$get_dta_from_server.doInBackground(Splash.java:106)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at ovh.vpssd.music22.music.Splash$get_dta_from_server.doInBackground(Splash.java:95)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at android.os.AsyncTask$2.call(AsyncTask.java:287)
09-01 09:32:05.083 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.util.concurrent.FutureTask.run(FutureTask.java:234)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1080)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:573)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.lang.Thread.run(Thread.java:841)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err: Caused by: libcore.io.GaiException: getaddrinfo failed: EAI_NODATA (No address associated with hostname)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.io.Posix.getaddrinfo(Native Method)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at libcore.io.ForwardingOs.getaddrinfo(ForwardingOs.java:61)
09-01 09:32:05.087 17821-17846/ovh.vpssd.music22.music W/System.err:     at java.net.InetAddress.lookupHostByName(InetAddress.java:405)
09-01 09:32:05.107 17821-17846/ovh.vpssd.music22.music W/System.err:     ... 23 more

این ارور مال کودوم قسمت هست کسی میدونه مشکل از سمت سرور هست ؟

یک اکتیویتی دیگه ساختم مشکل از سمت سرور میاد ولی سرور مشکلی ندارد

لینک ارسال
به اشتراک گذاری در سایت های دیگر

یک مشکلی با آدرس سرورتون داره  یا اشتباه وارد کردید


 


09-01 09:32:05.071 17821-17846/ovh.vpssd.music22.music W/System.err: java.net.UnknownHostException: Unable to resolve host "vpsssd.ovh": No address associated with hostname

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

در 4 ساعت قبل، Gray Mind گفته است :


09-01 09:32:05.071 17821-17846/ovh.vpssd.music22.music W/System.err: java.net.UnknownHostException: Unable to resolve host "vpsssd.ovh": No address associated with hostname

یک مشکلی با آدرس سرورتون داره  یا اشتباه وارد کردید


ممنون از پاسخ شما

بنده قبل از اینکه اکتیویتی دیگری اجرا کنم مشکلی نداشت وصل به سرور می شد مشکل از اکتیوتی جدید آیا نیست؟

 

 

لینک ارسال
به اشتراک گذاری در سایت های دیگر

بایگانی شده

این موضوع بایگانی و قفل شده و دیگر امکان ارسال پاسخ نیست.

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...