1. Download our Official Android App: Forums for Android!

Apps Unable to create a new activity

Discussion in 'Android Development' started by springrose, May 22, 2016.

  1. springrose

    springrose Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 22, 2016

    May 22, 2016
    3
    0
    5
    When I tried to add a new activity in a dummy new Android application, it was fine. However when I tried to add a new activity for this specific project, there was a red error pop up on the right corner (not showing up in attachment, don't know why) when I clicked nothing happened. I clicked at the bottom left where its saying IllegalStateException but nothing happened either. I clicked everywhere and nothing happened, I couldn't even hit Cancel or the X button to close. How do I find out what the error was? I basically have to End Task just to get out of this screen, and it is puzzling.
     

    Advertisement

  2. LV426

    LV426 I say we take off and nuke this place from orbit
    Moderator
    Rank:
     #11
    Points:
    1,988
    Posts:
    7,281
    Joined:
    Oct 16, 2015

    Oct 16, 2015
    7,281
    10,383
    1,988
    Male
    Software developer
    South West of England
    Unusual. What did the popup dialog say?
    Is there any error message in the Gradle console, or Logcat views?
     
  3. GodLovesYou

    GodLovesYou Android Enthusiast
    Rank:
    None
    Points:
    43
    Posts:
    255
    Joined:
    Jan 25, 2016

    Jan 25, 2016
    255
    43
    43
    Try to clean, rebuild and build
     
  4. springrose

    springrose Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 22, 2016

    May 22, 2016
    3
    0
    5
    Got another screenshot with the red popup on the side. I can't click into the Gradle console, or Logcat. Like I said earlier, clicking anywhere yields nothing. The only way was to open Task manager and End the process, which to me is super ugly.
     
  5. springrose

    springrose Lurker
    Thread Starter
    Rank:
    None
    Points:
    5
    Posts:
    3
    Joined:
    May 22, 2016

    May 22, 2016
    3
    0
    5
    did that, still same error.
     

Share This Page

Loading...