简体   繁体   中英

Why am I getting an error in my main.xml?

See image here :

在此处输入图片说明

I get error in setContentView(R.layout.main); Where is my problem?

You seem to have invalid value set for layout_width (="match_parent"). "fill_parent" is maybe what you're looking for. "match_parent" is available only for API level 8 and higher.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM