Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.lang.NumberFormatException with certain attribute values parsed by the AttrWizard #109

Closed
gautam2682 opened this issue Oct 20, 2018 · 0 comments

Comments

@gautam2682
Copy link

commented Oct 20, 2018

([x] becomes a filled in checkbox, [ ] is an empty one)


If this is a feature request, you can clear everything below.

Include the following:
  • Affected device(s): = All Devices using Android App Bundle
Reproduction Steps

After using Android App Bundle with Aesthetic with proguard enabled it is not opening on any device , while i have tried the apk it works fine but not working with android app bundle, is there any problem with the proguard ?. Please check this also.

Caused by java.lang.NumberFormatException: For input string: "android:color/black"
       at java.lang.Integer.parseInt(Integer.java:521)
       at java.lang.Integer.parseInt(Integer.java:556)
       at com.afollestad.aesthetic.internal.AttrWizard.getRawValue(Unknown Source)
       at com.afollestad.aesthetic.internal.InflationInterceptor.onCreateView(Unknown Source)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:861)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
       at com.google.android.material.internal.NavigationMenuPresenter.flagActionItems(Unknown Source)
       at com.google.android.material.navigation.NavigationView.inflateHeaderView(Unknown Source)
       at com.google.android.material.navigation.NavigationView.(Unknown Source)
       at com.google.android.material.navigation.NavigationView.(Unknown Source)
       at com.afollestad.aesthetic.views.AestheticNavigationView.(Unknown Source)
       at com.afollestad.aesthetic.internal.InflationInterceptor.viewForName(Unknown Source)
       at com.afollestad.aesthetic.internal.InflationInterceptor.onCreateView(Unknown Source)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:769)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
       at android.view.LayoutInflater.rInflate(LayoutInflater.java:858)
       at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:426)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:377)
       at androidx.appcompat.app.AppCompatDelegateImpl.onPostCreate(Unknown Source)
       at androidx.appcompat.app.AppCompatActivity.setContentView(Unknown Source)
       at com.MainActivity.onCreate(Unknown Source)
       at android.app.Activity.performCreate(Activity.java:6705)
       at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1119)
       at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
       at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
       at android.app.ActivityThread.-wrap12(ActivityThread.java)
       at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
       at android.os.Handler.dispatchMessage(Handler.java:102)
       at android.os.Looper.loop(Looper.java:154)
       at android.app.ActivityThread.main(ActivityThread.java:6077)
       at java.lang.reflect.Method.invoke(Method.java)
       at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
       at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
 

After removing android:color/black from my project it started giving following errors:-

Caused by java.lang.NumberFormatException: Invalid int: "attr/actionMenuTextColor"
       at java.lang.Integer.invalidInt(Integer.java:138)
       at java.lang.Integer.parse(Integer.java:410)
       at java.lang.Integer.parseInt(Integer.java:367)
       at java.lang.Integer.parseInt(Integer.java:334)
       at com.afollestad.aesthetic.internal.AttrWizard.getRawValue(Unknown Source)
       at com.afollestad.aesthetic.internal.InflationInterceptor.onCreateView(Unknown Source)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:746)
       at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:704)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:492)
       at android.view.LayoutInflater.inflate(LayoutInflater.java:423)
       at androidx.appcompat.view.menu.BaseMenuPresenter.createItemView(Unknown Source)
       at androidx.appcompat.view.menu.BaseMenuPresenter.initForMenu(Unknown Source)
       at androidx.appcompat.widget.ActionMenuPresenter.initForMenu(Unknown Source)
       at androidx.appcompat.widget.ActionMenuPresenter.setReserveOverflow(Unknown Source)
       at androidx.appcompat.view.menu.MenuBuilder.flagActionItems(Unknown Source)
       at androidx.appcompat.view.menu.BaseMenuPresenter.initForMenu(Unknown Source)
       at androidx.appcompat.widget.ActionMenuPresenter.initForMenu(Unknown Source)
       at androidx.appcompat.view.menu.MenuBuilder.dispatchPresenterUpdate(Unknown Source)
       at androidx.appcompat.view.menu.MenuBuilder.removeMenuPresenter(Unknown Source)
       at androidx.appcompat.view.menu.MenuBuilder.removeMenuPresenter(Unknown Source)
       at androidx.appcompat.view.menu.MenuItemImpl.setShowAsAction(Unknown Source)
       at androidx.appcompat.view.SupportMenuInflater$MenuState.resetGroup(Unknown Source)
       at androidx.appcompat.view.SupportMenuInflater$MenuState.readItem(Unknown Source)
       at androidx.appcompat.view.SupportMenuInflater.parseMenu(Unknown Source)
       at androidx.appcompat.view.SupportMenuInflater.inflate(Unknown Source)
       at androidx.appcompat.widget.Toolbar.canShowOverflowMenu(Unknown Source)
    
@afollestad afollestad changed the title Android App Bundle gives java.lang.NumberFormatException while opening app java.lang.NumberFormatException with certain attribute values parsed by the AttrWizard Oct 20, 2018
@afollestad afollestad self-assigned this Oct 20, 2018
@afollestad afollestad added the bug label Oct 20, 2018
afollestad added a commit that referenced this issue Oct 20, 2018
afollestad added a commit that referenced this issue Oct 21, 2018
afollestad added a commit that referenced this issue Oct 21, 2018
afollestad added a commit that referenced this issue Oct 21, 2018
afollestad added a commit that referenced this issue Oct 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.