App crash while using TabLayout with design API 23.1.0+ - android

I am using TabLayout inside a fragment of my app. It works OK with design API version of 23.0.0 and below but for 23.1.0 and 23.2.0 I have the following crash:
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: FATAL EXCEPTION: main
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: Process:
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: android.view.InflateException: Binary XML file line #10: Binary XML file line #10: Error inflating class android.support.design.widget.TabLayout
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at fragment.PrizeListFragment.onCreateView(PrizeListFragment.java:148)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.Fragment.performCreateView(Fragment.java:2220)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:973)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.FragmentManagerImpl.moveToState(FragmentManager.java:1148)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.BackStackRecord.run(BackStackRecord.java:793)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1535)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.FragmentManagerImpl.executePendingTransactions(FragmentManager.java:562)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.support.v13.app.FragmentPagerAdapter.finishUpdate(FragmentPagerAdapter.java:145)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.support.v4.view.ViewPager.populate(ViewPager.java:1106)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.support.v4.view.ViewPager.populate(ViewPager.java:952)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.support.v4.view.ViewPager.onMeasure(ViewPager.java:1474)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.View.measure(View.java:18788)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.widget.RelativeLayout.measureChildHorizontal(RelativeLayout.java:715)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.widget.RelativeLayout.onMeasure(RelativeLayout.java:461)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.View.measure(View.java:18788)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.View.measure(View.java:18788)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at com.android.internal.widget.ActionBarOverlayLayout.onMeasure(ActionBarOverlayLayout.java:446)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.View.measure(View.java:18788)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.ViewGroup.measureChildWithMargins(ViewGroup.java:5951)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.widget.FrameLayout.onMeasure(FrameLayout.java:194)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at com.android.internal.policy.PhoneWindow$DecorView.onMeasure(PhoneWindow.java:2643)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.View.measure(View.java:18788)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewRootImpl.performMeasure(ViewRootImpl.java:2100)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewRootImpl.measureHierarchy(ViewRootImpl.java:1216)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1452)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1107)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:6013)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.Choreographer$CallbackRecord.run(Choreographer.java:858)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.view.Choreographer.doCallbacks(Choreographer.java:670)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.Choreographer.doFrame(Choreographer.java:606)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:844)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:739)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:95)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-26 16:03:42.528 7794-7794/E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-26 16:03:42.528 7794-7794/ E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
Crash occurs at this line when i inflate my xml layout for the fragment:
View fragmentView = inflater.inflate(R.layout.fragment_prize_list, container, false);
Here is my TabLayout implementation in code:
TabLayout tabLayout = (TabLayout) fragmentView.findViewById(R.id.sliding_tabs_type);
tabLayout.setTabTextColors(getResources().getColor(R.color.text_gray), getResources().getColor(R.color.theme_light_blue));
tabLayout.setupWithViewPager(viewPager);
Here are the realted xmls
XML Layout Fragment
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
xmlns:app="http://schemas.android.com/apk/res-auto"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:orientation="vertical"
android:background="#android:color/transparent">
<android.support.design.widget.TabLayout
android:id="#+id/sliding_tabs_type"
android:layout_width="match_parent"
android:layout_height="40dp"
app:tabGravity="fill"
android:background="#color/white"
app:tabTextAppearance="#style/TabLayoutPrizeType.Text"
style="#style/TabLayoutPrizeType"/>
<android.support.v4.view.ViewPager
android:id="#+id/vp_prize"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="#android:color/white" />
</LinearLayout>
Styles xml
<style name="TabLayoutPrizeType" parent="Widget.Design.TabLayout">
<item name="tabIndicatorColor">#color/semi_theme_blue</item>
</style>
<style name="TabLayoutPrizeType.Text" parent="TextAppearance.Design.Tab">
<item name="android:textSize">15sp</item>
</style>

Related

IllegalArgumentException from closing service that draws on other apps

I am writing an android app that runs a service in the background that makes use of the OVERLAY_PERMISSION to draw on other apps. It starts with an intent from a button on my main activity. So far, so good.
In my service, in my onDestroy(), I have a if (myView != null) windowManager.removeView(myView);. And when I call stopService from the activity, I get an error, saying:
java.lang.RuntimeException: Unable to stop service com.supernovaapps.cameralevel.LevelService#ed1633f: java.lang.IllegalArgumentException: View=android.widget.AbsoluteLayout{94fb155 V.E...... ......I. 0,0-0,0} not attached to window manager
I am only able to close the service if I comment out that line. However, if I do that, the view remains on the screen even after the service is closed, which is not what I want.
What is the correct way to close the service and detach the view?
Full Trace:
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: FATAL EXCEPTION: main
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: Process: com.supernovaapps.cameralevel, PID: 21233
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: java.lang.RuntimeException: Unable to stop service com.supernovaapps.cameralevel.LevelService#ed1633f: java.lang.IllegalArgumentException: View=android.widget.AbsoluteLayout{94fb155 V.E...... ......I. 0,0-0,0} not attached to window manager
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.handleStopService(ActivityThread.java:3059)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1447)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: Caused by: java.lang.IllegalArgumentException: View=android.widget.AbsoluteLayout{94fb155 V.E...... ......I. 0,0-0,0} not attached to window manager
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.view.WindowManagerGlobal.findViewLocked(WindowManagerGlobal.java:424)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.view.WindowManagerGlobal.removeView(WindowManagerGlobal.java:350)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.view.WindowManagerImpl.removeView(WindowManagerImpl.java:111)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at com.supernovaapps.cameralevel.LevelService.onDestroy(LevelService.java:164)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.handleStopService(ActivityThread.java:3040)
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.-wrap21(ActivityThread.java) 
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1447) 
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102) 
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148) 
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417) 
12-20 20:16:10.042 21233-21233/com.supernovaapps.cameralevel E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
Looks like you passed a different view to windowManager than what was added to it before.
Just pass it the right view and it would work.

Java.lang.IllegalStateException Activity has been destroyed

I know there are lots of same question and I checked its solutions\ suggestions. However, they are not working for me. I am trying to add fragment and when I am calling fragmentTransaction.commit() it throws that exception, but that happens only with my 2nd fragment.
I send a notification to my application, when it is clicked, it opens my app which open main fragment, at that time getSupportFragmentManager().findFragmentById(R.id.rl_content_fragment); returns null for current fragment ( which should be correct ), problem is my 2nd fragment ( playerFragment) when I try to add it ( while debugging) I found out that getSupportFragmentManager() still returns null for current fragment and it throws the exception that the activity has been destroyed when I call fragmentTransaction.commit().
My questions
1-is why does the Activity gets destroyed or finish while the application is starting?
2-how can I fix that issue?
Any hint will be appreciated, thanks.
EDIT this is the exception which I get, I know I should not change views unless I am on mainThread, but I do report on main thread, Sorry forgot to say we are using commitAllowingStateLoss() and this what i get
java.lang.IllegalStateException: Activity has been destroyed
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1399)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:637)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.support.v4.app.BackStackRecord.commitAllowingStateLoss(BackStackRecord.java:620)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myApp.BaseActivity.addContentFragment(BaseActivity.java:502)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myApp.BaseActivity$3.onCompleted(BaseActivity.java:837)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.SignalManager.setCompleted(SignalManager.java:291)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.EpisodeManager$5.onCompleted(EpisodeManager.java:1107)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.SignalManager.setCompleted(SignalManager.java:291)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.APIRequestManager$ConnectionTask.onPostExecute(APIRequestManager.java:645)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.APIRequestManager$ConnectionTask.onPostExecute(APIRequestManager.java:546)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:632)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.os.AsyncTask.access$600(AsyncTask.java:177)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5146)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
11-26 12:57:06.464 26608-26608/com.myApp E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
and if i use commit() I get this exception
Process: com.myApp, PID: 10659
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: java.lang.IllegalStateException: Can not perform this action after onSaveInstanceState
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.checkStateLoss(FragmentManager.java:1377)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.enqueueAction(FragmentManager.java:1395)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.support.v4.app.BackStackRecord.commitInternal(BackStackRecord.java:637)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.support.v4.app.BackStackRecord.commit(BackStackRecord.java:616)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myApp.BaseActivity.addContentFragment(BaseActivity.java:502)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myApp.BaseActivity$3.onCompleted(BaseActivity.java:837)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.SignalManager.setCompleted(SignalManager.java:291)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.EpisodeManager$5.onCompleted(EpisodeManager.java:1107)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.SignalManager.setCompleted(SignalManager.java:291)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.APIRequestManager$ConnectionTask.onPostExecute(APIRequestManager.java:645)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.myAppSDK.Managers.APIRequestManager$ConnectionTask.onPostExecute(APIRequestManager.java:546)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.os.AsyncTask.finish(AsyncTask.java:632)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.os.AsyncTask.access$600(AsyncTask.java:177)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.os.AsyncTask$InternalHandler.handleMessage(AsyncTask.java:645)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:136)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5146)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:732)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:566)
11-26 12:41:12.529 10659-10659/com.myApp E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
sorry for much logs

setDropDownBackgroundResource not working in marshmallows android

i have try to set the dropdown color for the autocomplete text view it works fine in all other api but when ever i run it with the nexus 5 marshmallows i got the following error
my log cat is
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: FATAL EXCEPTION: main
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: Process: test.text.com, PID: 29058
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: java.lang.NullPointerException: Attempt to invoke virtual method 'android.graphics.drawable.Drawable android.support.v7.internal.widget.TintManager.getDrawable(int)' on a null object reference
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.support.v7.widget.AppCompatAutoCompleteTextView.setDropDownBackgroundResource(AppCompatAutoCompleteTextView.java:96)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at test.text.com.activity.CreateRideActivity.onWindowFocusChanged(CreateRideActivity.java:369)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.support.v7.internal.view.WindowCallbackWrapper.onWindowFocusChanged(WindowCallbackWrapper.java:114)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.support.v7.internal.view.WindowCallbackWrapper.onWindowFocusChanged(WindowCallbackWrapper.java:114)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at com.android.internal.policy.PhoneWindow$DecorView.onWindowFocusChanged(PhoneWindow.java:3237)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.view.View.dispatchWindowFocusChanged(View.java:9528)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.view.ViewGroup.dispatchWindowFocusChanged(ViewGroup.java:1200)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.view.ViewRootImpl$ViewRootHandler.handleMessage(ViewRootImpl.java:3378)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
11-02 17:36:23.815 29058-29058/test.text.com E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
My code is
AutoSuggestView.setDropDownBackgroundResource(R.drawable.bg_rectangle_white_curve_border_right);
Try to update your appcompat libraries. In the current (23.1.1) version of appcompat-v7 the code in AppCompatAutoCompleteTextView was changed to resolve this like so
public void setDropDownBackgroundResource(#DrawableRes int resId) {
if (mTintManager != null) {
setDropDownBackgroundDrawable(mTintManager.getDrawable(resId));
} else {
super.setDropDownBackgroundResource(resId);
}
}

Getting java.lang.NoClassDefFoundError issue only with buildToolsVersion '23.0.1'

I am getting a very strange error like java.lang.NoClassDefFoundError: com.example.Fragments.SecondarySplashFragment while running my application with buildToolsVersion '23.0.1' in Android Studio (Windows version). This error completely seems to be very weird and new to me since I am facing this only with Windows version of Android studio, whereas it is working without any flaw in Ubuntu version. I really don't know what to do and completely stuck up with this error for the past two days. Any kind of solution would be much helpful for me. I am also posting my complete logcat below for your reference as follows.
java.lang.NoClassDefFoundError: com.example.Fragments.SecondarySplashFragment$1
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at com.example.Fragments.SecondarySplashFragment.findViews(SecondarySplashFragment.java:71)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at com.example.Fragments.SecondarySplashFragment.onCreateView(SecondarySplashFragment.java:59)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.Fragment.performCreateView(Fragment.java:1965)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1078)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1259)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.BackStackRecord.run(BackStackRecord.java:738)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:1624)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.FragmentController.execPendingActions(FragmentController.java:330)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.support.v4.app.FragmentActivity.onStart(FragmentActivity.java:547)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.Instrumentation.callActivityOnStart(Instrumentation.java:1177)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.Activity.performStart(Activity.java:5461)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2386)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2471)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.ActivityThread.access$900(ActivityThread.java:175)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1308)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.os.Looper.loop(Looper.java:146)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5602)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at java.lang.reflect.Method.invokeNative(Native Method)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at java.lang.reflect.Method.invoke(Method.java:515)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099)
10-31 12:45:01.561 26135-26135/com.example E/AndroidRuntime: at dalvik.system.NativeStart.main(Native Method)
build.gradle
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion '23.0.1'
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.example"
minSdkVersion 11
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
dexOptions {
javaMaxHeapSize "4g"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile 'com.android.support:appcompat-v7:23.1.0'
compile 'com.google.android.gms:play-services:8.1.0'
compile 'com.google.code.gson:gson:2.4'
compile 'com.android.support:design:23.0.1'
compile 'com.android.support:cardview-v7:23.0.1'
compile files('libs/volley.jar')
compile 'com.github.bumptech.glide:glide:3.6.1'
compile 'com.android.support:recyclerview-v7:23.1.0'
}
Note: This issue is happening only with buildToolsVersion 23.0.1 but however if I change it to buildToolsVersion 22.2.0 everything works fine without any issues.
Thanks in advance.

Android Studio Emulation on Mac OS X - InflateException: Binary XML (MapBox)

This is a really specific issue, so it may be hard to diagnose.
I have an Android app that is working on an Android phone and is emulated correctly on a Windows 8.1 x86 emulator (via Android Studio), but when I run it in an x86 emulator on my Mac (OS X 10.11.1), it runs until I try to inflate the activity with the MapBox map.
To summarize, this is what works / what I've done:
Works on Windows 8.1 Android Studio Emulator
Works on an Android 5.1 Moto X
My Mac has the Intel x86 Emulator Accelerator (HAXM) installed
I am running an x86 Emulator via Android Studio for Mac
This error occurs just when inflating the MapBox activity:
10-30 12:16:03.848 4557-4557/? I/art: Not late-enabling -Xcheck:jni (already on)
10-30 12:16:03.848 4557-4557/? I/art: Late-enabling JIT
10-30 12:16:03.852 4557-4557/? I/art: JIT created with code_cache_capacity=2MB compile_threshold=1000
10-30 12:16:05.276 4557-4611/com.example.example.thisapp I/GMPM: App measurement is starting up
10-30 12:16:05.278 4557-4611/com.example.example.thisapp E/GMPM: getGoogleAppId failed with status: 10
10-30 12:16:05.279 4557-4611/com.example.example.thisapp E/GMPM: Uploading is not possible. App measurement disabled
10-30 12:16:05.336 4557-4573/com.example.example.thisapp W/art: Suspending all threads took: 19.618ms
10-30 12:16:05.522 4557-4626/com.example.example.thisapp D/OpenGLRenderer: Use EGL_SWAP_BEHAVIOR_PRESERVED: true
10-30 12:16:05.528 4557-4557/com.example.example.thisapp D/: HostConnection::get() New Host Connection established 0xb401ca30, tid 4557
10-30 12:16:05.632 4557-4626/com.example.example.thisapp D/: HostConnection::get() New Host Connection established 0xaf8be1e0, tid 4626
10-30 12:16:05.658 4557-4626/com.example.example.thisapp I/OpenGLRenderer: Initialized EGL, version 1.4
10-30 12:16:05.693 4557-4626/com.example.example.thisapp W/EGL_emulation: eglSurfaceAttrib not implemented
10-30 12:16:05.693 4557-4626/com.example.example.thisapp W/OpenGLRenderer: Failed to set EGL_SWAP_BEHAVIOR on surface 0xabe3a540, error=EGL_SUCCESS
10-30 12:16:11.189 4557-4557/com.example.example.thisapp D/AndroidRuntime: Shutting down VM
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: FATAL EXCEPTION: main
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: Process: com.example.example.thisapp, PID: 4557
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{com.example.example.thisapp/com.example.example.thisapp.MapsActivity}: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2416)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:539)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2166)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.example.example.thisapp.MapsActivity.onCreate(MapsActivity.java:79)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: Caused by: android.view.InflateException: Binary XML file line #9: Error inflating class com.mapbox.mapboxsdk.views.MapView
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:645)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2166)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.example.example.thisapp.MapsActivity.onCreate(MapsActivity.java:79)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: Caused by: java.lang.reflect.InvocationTargetException
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2166)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.example.example.thisapp.MapsActivity.onCreate(MapsActivity.java:79)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: Caused by: java.lang.UnsatisfiedLinkError: dlopen failed: /data/app/com.example.example.thisapp-2/lib/x86/libmapbox-gl.so: has text relocations
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.Runtime.loadLibrary(Runtime.java:372)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.System.loadLibrary(System.java:1076)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.mapbox.mapboxsdk.views.NativeMapView.<clinit>(NativeMapView.java:37)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.mapbox.mapboxsdk.views.MapView.initialize(MapView.java:593)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.mapbox.mapboxsdk.views.MapView.<init>(MapView.java:538)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Constructor.newInstance(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createView(LayoutInflater.java:619)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:764)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflate(LayoutInflater.java:835)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:798)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:515)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.view.LayoutInflater.inflate(LayoutInflater.java:374)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.policy.PhoneWindow.setContentView(PhoneWindow.java:393)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.setContentView(Activity.java:2166)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.example.example.thisapp.MapsActivity.onCreate(MapsActivity.java:79)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6237)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1107)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2369)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2476)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.-wrap11(ActivityThread.java)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1344)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.os.Looper.loop(Looper.java:148)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:5417)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
10-30 12:16:11.199 4557-4557/com.example.example.thisapp E/AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
10-30 12:16:11.360 4557-4573/com.example.example.thisapp W/art: Suspending all threads took: 37.146ms
10-30 12:16:11.372 4557-4577/com.example.example.thisapp I/art: Background sticky concurrent mark sweep GC freed 9470(718KB) AllocSpace objects, 4(80KB) LOS objects, 48% free, 1890KB/3MB, paused 4.151ms total 202.120ms
10-30 12:16:11.407 4557-4577/com.example.example.thisapp W/art: Suspending all threads took: 34.815ms
The other InflateException / Binary XML error answers I've seen haven't worked or are not applicable.

Categories

Resources