Prior to enrolling in college, Avila was ranked as the 2nd best midfielder and 6th best prospect overall in the class of 2005 by StudentSportsSoccer.com.[6] Avila was recruited with a scholarship to attend the University of California, Santa Barbara by head coach Tim Vom Steeg.[3] Avila was the marquee signing in a class that contained future professionals Chris Pontius, Alfonso Motagalvan, and Ryan Kenny.[7]
As a freshman on the UC Santa Barbara Gauchos men's soccer team in 2005, he started 21 games while scoring three goals and assisting on five more.[8] Avila was named to the College Soccer News All-Freshman First Team as well as being the Big West Conference Freshman of the Year.[3][9][10] As a sophomore, Avila started 25 games, scoring eight goals to go along with five assists.[11] He scored the national championship-winning goal in the 2006 NCAA Division I Men's Soccer Championship final over the UCLA Bruins.[3][12][13][14] He was named to the All-College Cup team.[15] As a junior, Avila appeared in 20 games, starting 18 of them. He scored four more goals and added eight assists.[16] He left UCSB to pursue a professional career at the conclusion of the season and finished his Gaucho career with 66 games played, 15 goals, and 18 assists.[17]
Avila decided to forgo his senior season as professional clubs started to show interest. Avila decided to sign a Generation Adidas contract and he was subsequently drafted in the 2nd round (19th overall) by FC Dallas in the 2008 MLS SuperDraft.[17]
Avila made his MLS debut for FC Dallas as an 85th-minute substitute against the Houston Dynamo in a 1–1 tie on June 26, 2008.[20] He earned his first MLS career assist on a header by Abe Thompson during stoppage time helping FC Dallas to a 1–1 tie against the Kansas City Wizards on July 4, 2008.[21] and scored his first senior goal on June 20, 2009, in a game against Columbus Crew.[22]
During the 2010 MLS Cup Playoffs, he scored the winning goal in the 88th minute to give Dallas a win over Real Salt Lake in the first leg of the Western Conference semifinals, helping the Red Stripes win the series, 3–2, on aggregate as Dallas made its first-ever MLS Cup appearance.
On August 2, 2011, FC Dallas traded Avila to Toronto FC for Maicon Santos and an international roster spot (through the remainder of the 2011 season).[25][26] Four days later Avila made his debut for the team against D.C. United in a 3–3 away draw.[27] Avila scored his first goal for Toronto on August 27 in a 1–1 home draw against San Jose Earthquakes.[28] Avila scored his first goal of the 2012 season against Real Salt Lake April 28 in a 3–2 away defeat.[29]
Chivas USA
When Avila's contract expired at the end of the 2012 season he elected to participate in the 2012 MLS Re-Entry Draft. On December 14, 2012, Avila was selected by Colorado Rapids in stage two of the draft.[30] About a month later, Avila was traded to Chivas USA for Nick LaBrocca.[31] Avila went on trial with C.D. Guadalajara of the Liga MX on two occasions but the club never signed him. There was also speculation that Santos Laguna were going to sign him but the negotiations seemed to stop.[32]
Orlando City
Avila joined Orlando on a loan from Santos Laguna. He scored his first goal May 17, 2015 against LA Galaxy in which Orlando City SC won 4–0. Avila made 21 appearances for Orlando in 2015, totaling 1,325 minutes of play.
Tampa Bay Rowdies
On February 26, 2016, Avila joined the Tampa Bay Rowdies on a one-year contract with a club option for 2017.[33]
For the 2018 season he was on the roster at NPSL team ASC San Diego.[35]
Coaching
Following his retirement from playing, Avila coached the San Diego Nomads U-15 team in MLS Next in 2021 and early 2022. On March 3, 2022, Avila returned to Birmingham Legion to serve as the Legion's Academy director and first team assistant coach.[36]
International career
Avila entered the US U17 Residency Program in Bradenton, Florida in the fall of 2003.[37] He made his first appearance with US U-17's at the age of 15 against England. He went on to earn 9 international caps with the U-17's, appearing in 15 total matches. The total was the highest of the 1987 boys class. His last appearance came in Spring of 2005.[37]
He helped lead the U.S. to the finals of the Ballymena International Tournament held in Northern Ireland, which he regards as one of his most memorable moments in sports. He also participated in the Mondial Minimes Montaigu Vendee Tournament held in France. In addition to tournaments, he played in a number of matches against Major League Soccer teams, including Los Angeles Galaxy, Chicago Fire, and Columbus Crew, while scoring the game-tying goal in a friendly against the San Jose Earthquakes.