学习RecyclerView时出现的错误

来源:互联网 发布:考公务员的软件 编辑:程序博客网 时间:2024/06/03 21:51

问题描述:

 Error:A problem was found with the configuration of task ':RecyclerViewTest:zipalignDebug'.
> File 'E:\android\AndroidSDK\build-tools\23.0.2\zipalign.exe' specified for property 'zipAlignExe' does not exist.

这是由于便于版本问题,只须在Project Structure中将编译版本调低即可





问题描述:

Unable to start activityComponentInfo{com.example.administrator.myapplication/

com.example.administrator.myapplication.Activity.MainActivity}: android.view.InflateException: Binary XML file line #2: Error inflating class

LinearLayoutLayout



错误原因是因为LinearLayout写成了LinearLayoutLayout,导致报错,记下来方便日后学习。

0 0
原创粉丝点击