我的应用程序不更新日食和放后运行; ADT [英] my apps dont run after update eclipse & adt

查看:439
本文介绍了我的应用程序不更新日食和放后运行; ADT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我更新的SDK管理器和放大器;日食和放大器; ADT结果
但现在新的Andr​​oid应用程序不运行。结果
我的Andr​​oid应用程序自动创建actionbaractivity&安培;进口Android的支持-V7

这是我的错误日志:

描述资源路径位置类型
ActionBarActivity不能被解析为一个类型MainActivity.java / testpro / src目录/ COM /例子/ testpro线9 Java问题
ActionBarActivity不能被解析为一个类型MainActivity.java / testpro / src目录/ COM /例子/ testpro 13行Java问题
ActionBarActivity不能被解析为一个类型MainActivity.java / testpro / src目录/ COM /例子/ testpro线34 Java问题
错误:错误为检索项父:没有资源的发现,给定的名称'Theme.AppCompat.Light.DarkActionBar'匹配。 styles.xml / testpro / RES /值-V14线8款Android AAPT问题
错误:错误为检索项父:没有资源的发现,给定的名称'Theme.AppCompat.Light'匹配。 styles.xml / testpro / RES /值7号线的Andr​​oid AAPT问题
错误:错误为检索项父:没有资源的发现,给定的名称'Theme.AppCompat.Light'匹配。 styles.xml / testpro / RES /值-V11线7的Andr​​oid AAPT问题
R 1不能被解析到一个变量MainActivity.java / testpro / src目录/ COM /例子/ testpro线14 Java问题
R 1不能被解析到一个变量MainActivity.java / testpro / src目录/ COM /例子/ testpro线21 Java问题
R 1不能被解析到一个变量MainActivity.java / testpro / src目录/ COM /例子/ testpro第31行的Java问题
进口android.support不能得到解决MainActivity.java / testpro / src目录/ COM /例子/ testpro线3 Java问题
该方法getMenuInflater()是未定义的类型MainActivity MainActivity.java / testpro / src目录/ COM /例子/ testpro线21 Java问题
类型MainActivity的方法的onCreate(捆绑)必须覆盖或实现超方法MainActivity.java / testpro / src目录/ COM /例子/ testpro线12 Java问题
类型MainActivity的方法onCreateOptionsMenu(菜单)必须覆盖或实现超方法MainActivity.java / testpro / src目录/ COM /例子/ testpro 19行Java问题
类型MainActivity的方法onOptionsItemSelected(菜单项)必须覆盖或实现超方法MainActivity.java / testpro / src目录/ COM /例子/ testpro线26 Java问题


解决方案

  1. 在您从Package Explorer中工作的项目右键单击

  2. 进入属性
    3转至Java构建路径从右边的树结构

  3. 转至库标签

  4. 选择添加库按钮

  5. 选择JRE系统库

  6. 按下一步

  7. 的单选按钮会提示工作空间缺省JRE,让它是这样

  8. 点击完成

I updated Sdk manager & eclipse & Adt
but now new android app dont run.
my android app automatically create actionbaractivity & import android-support-v7

this is my error log:

Description Resource Path Location Type ActionBarActivity cannot be resolved to a type MainActivity.java /testpro/src/com/example/testpro line 9 Java Problem ActionBarActivity cannot be resolved to a type MainActivity.java /testpro/src/com/example/testpro line 13 Java Problem ActionBarActivity cannot be resolved to a type MainActivity.java /testpro/src/com/example/testpro line 34 Java Problem error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.DarkActionBar'. styles.xml /testpro/res/values-v14 line 8 Android AAPT Problem error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /testpro/res/values line 7 Android AAPT Problem error: Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light'. styles.xml /testpro/res/values-v11 line 7 Android AAPT Problem R cannot be resolved to a variable MainActivity.java /testpro/src/com/example/testpro line 14 Java Problem R cannot be resolved to a variable MainActivity.java /testpro/src/com/example/testpro line 21 Java Problem R cannot be resolved to a variable MainActivity.java /testpro/src/com/example/testpro line 31 Java Problem The import android.support cannot be resolved MainActivity.java /testpro/src/com/example/testpro line 3 Java Problem The method getMenuInflater() is undefined for the type MainActivity MainActivity.java /testpro/src/com/example/testpro line 21 Java Problem The method onCreate(Bundle) of type MainActivity must override or implement a supertype method MainActivity.java /testpro/src/com/example/testpro line 12 Java Problem The method onCreateOptionsMenu(Menu) of type MainActivity must override or implement a supertype method MainActivity.java /testpro/src/com/example/testpro line 19 Java Problem The method onOptionsItemSelected(MenuItem) of type MainActivity must override or implement a supertype method MainActivity.java /testpro/src/com/example/testpro line 26 Java Problem

解决方案

  1. Right-click on the project you are working on from Package Explorer
  2. Go to "Properties" 3 Go to "Java Build Path" from the right tree structure
  3. Go to the "Libraries" tab
  4. Choose the "Add Library" button
  5. Select "JRE System Library"
  6. Hit "Next"
  7. The radio button will prompt the Workspace default JRE, and let it be that way
  8. Hit "Finish"

这篇关于我的应用程序不更新日食和放后运行; ADT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆