热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

AppCompatv7r21返回valuees.xml中的错误?-AppCompatv7r21returningerrorinvalues.xml?

ImusingAndroidStudioandwhenIaddcompilecom.android.support:appcompat-v7:21.0.0tomyGra

I'm using Android Studio and when I add compile "com.android.support:appcompat-v7:21.0.0" to my Gradle file, I'm getting a ton of errors:

我正在使用Android Studio,当我在我的Gradle文件中添加编译“com.android.support:appcompat-v7:21.0.0”时,我就会得到大量的错误:

C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(36, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v14\values.xml
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\WindowsSucks\AndroidStudioProjects\MMMeds\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.

All of these seem to be showing up in:

所有这些似乎都出现在:

\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v11\values.xml

and

\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.0\res\values-v21\values.xml

23 个解决方案

#1


427  

AppCompat v21 builds themes that require the new APIs provided in API 21 (Android 5.0). To compile your application with AppCompat, you must also compile against API 21. The recommended setup for compiling/building with API 21 is a compileSdkVersion of 21 and a buildToolsVersion of 21.0.1 (which is the highest at this time - you always want to use the latest build tools).

AppCompat v21构建的主题需要API 21 (Android 5.0)中提供的新API。要使用AppCompat编译应用程序,还必须根据API 21进行编译。使用API 21编译/构建的推荐设置是21的编译dkversion和21.0.1的buildToolsVersion(这是目前最高的—您总是希望使用最新的构建工具)。

#2


43  

Make sure the value for target (which tells the target android version) in project.properties file of both your project folder and appcompat_v7 folder is same (preferably the latest).

确保目标的值(告诉目标android版本)在项目中。项目文件夹和appcompat_v7文件夹的属性文件是相同的(最好是最新的)。

: inside 'your_project'/project.properties

:内部/ project.properties your_project

target=android-21 android.library.reference.1=../appcompat_v7

目标= android-21 android.library.reference.1 = . . / appcompat_v7

and

: inside appcompat_v7/project.properties

:在appcompat_v7 / project.properties

target=android-21 android.library=true

目标= android-21 android.library = true

and after this don't forget to clean your project .

在此之后,别忘了清理你的项目。

#3


18  

Changing compile 'com.android.support:appcompat-v7:21.0.0' into compile 'com.android.support:appcompat-v7:20.0.0' in gradle.build works for me.

将“com.android.support:appcompat-v7:21.0.0”更改为“compile”(com.android.support:appcompat-v7:20.0.0)。构建适合我。

#4


12  

If you are using android studio goto File --> Project Structure In the Properties tab change Compile Sdk Version to AP1 21 and Build Tools Version to highest available version. And then Refresh Gradle

如果您正在使用android studio goto文件——Properties选项卡中的>项目结构,将编译Sdk版本更改为AP1 21,并将工具版本更改为最高可用版本。然后刷新它

#5


7  

changing the complie SDk version to API level 21 fixed it for me. then i ran into others issues of deploying the app to my device. i changed the minimun API level to target to what i want and that fixed it.

将complie SDk版本更改为API级别21为我修复了它。然后我遇到了其他问题,把应用程序部署到我的设备上。我将minimun API级别更改为我想要的,并对它进行了修复。

incase someone is experiencing this again.

万一有人再遇到这种情况。

#6


4  

Just select target api level to 21 for compiling, click Apply -> click OK, clean and build project and run it.

只需选择目标api级别为21进行编译,单击Apply ->单击OK,清洗并构建项目并运行它。

Screenshot for same

#7


4  

my solucion is compile with other version

我的解决方案是与其他版本一起编译的

build.gradle (app)

构建。gradle(应用)

compileSdkVersion 21

Good Luck

祝你好运

#8


4  

Change your compile sdk to 23.This fixed it for me.

将编译sdk更改为23。这帮我搞定了。

#9


3  

I vote whoever can solve like me. I had this same problem as u , I spent many hours to get correct . Please test .

我投票给像我这样能解决问题的人。我和你有同样的问题,我花了很多时间去纠正。请测试。

Upgrade entire SDK , the update 21.0.2 build also has updates from Google Services play . Upgrade everything. In your workspace delete folders ( android -support- v7 - AppCompat ) and ( google -play - services_lib )

升级整个SDK,更新21.0.2版本也有谷歌服务的更新。升级所有的事情。在工作空间中删除文件夹(android -support- v7 - AppCompat)和(谷歌-play - services_lib)

Re-import these projects into the IDE and select to copy them to your workspace again.

将这些项目重新导入IDE,并选择将它们再次复制到您的工作区。

The project ( google -play - services_lib ) to perform the action of Refresh and Build

执行刷新和构建操作的项目(谷歌-play - services_lib)

**** ***** Problem The project ( android -support- v7 - AppCompat ) mark the 5.0 API then Refresh and Build .

项目(android -support- v7 - AppCompat)标记5.0 API,然后刷新并构建。

In his project , in properties , android , import libraries ( android -support- v7 - AppCompat ) and ( google -play - services_lib ) then Refresh and Build .

在他的项目中,在属性、android、导入库(android -support- v7 - AppCompat)和(谷歌-play - services_lib)中,然后刷新和构建。

#10


3  

If you don't want to use API 21 you can use the older version of appcompact library, use older app compact library without updating it.

如果您不想使用API 21,您可以使用appcompact库的旧版本,使用旧版本的appcompact库而无需更新它。

you can achieve this by simply following steps:

你可以通过以下步骤来实现:

1) Extract the downloaded version of complete sdk and eclipse bundle.

1)提取完整sdk和eclipse bundle的下载版本。

2) Simply import appCompact library from sdk\extras\android\support\v7\appcompact

2)从sdk\extras\ \ \ \ \android\ \support\v7\ appCompact中导入appCompact library

now you are done.

现在你完成了。

#11


3  

Quoting from here:

引用:

To resolve this issue,

为了解决这个问题,

  1. Right Click on appcompat_v7 library and select Properties
  2. 右键单击appcompat_v7库并选择Properties
  3. Now, Click on Android Option,
  4. 现在,点击安卓选项,
  5. Set Project Build Path as Android 5.0 (API level 21)
  6. 将项目构建路径设置为Android 5.0 (API级别21)
  7. Apply Changes.
  8. 应用更改。
  9. Now go to project.properties file under appcompat_v7 library,
  10. 现在去项目。在appcompat_v7库下的属性文件,
  11. Set the project target as : target=android-21
  12. 将项目目标设置为:target=android-21
  13. Now Clean + Build appcompat_v7 library and your projects
  14. 现在,Clean +构建appcompat_v7库和项目

#12


2  

I have updated the build.gradle(Module: app): Old Code:

我已经更新了构建。gradle(模块:应用):旧代码:

  compile 'com.android.support:appcompat-v7:23.0.1'

New Code:

新代码:

 compile 'com.android.support:appcompat-v7:22.2.0'

Works for me in android studio.

我在安卓工作室工作。

#13


1  

Resource for android will be a option available when you go to your sdk manager and select Android 5.0. Download and install that. This will fix the problem of resource not found.

当你去你的sdk管理器并选择android 5.0时,android的资源将是一个可用的选项。下载并安装。这将解决没有找到资源的问题。

#14


1  

Hi there I was having the same error involving the appcompatv7 library and I did as @ianhanniballake suggested and check the build version of the library, by selecting it and giving a click with the secondary button of the mouse then:

你好,我在appcompatv7库中遇到了同样的错误,我按照@ianhanniballake的建议做了,并检查了库的构建版本,通过选择它并点击鼠标的辅助按钮:

Properties -> Android -> Android 5.0.1 api level 21

属性-> Android -> Android 5.0.1 api级别21

then clean all projects but I had no luck, so after loosing all my hopes I decided to upgrade from Eclipse Kepler to Eclipse Luna.

然后清理了所有的项目,但我没有运气,所以在放弃了所有的希望之后,我决定从Eclipse开普勒升级到Eclipse Luna。

While I was waiting for the download to complete. I decided to try another thing, so I went and delete from eclipse the appcompatv7 library and checked the

当我在等待下载完成的时候。我决定尝试另一件事,所以我去从eclipse中删除appcompatv7库并检查

Delete project contents on disk.

删除磁盘上的项目内容。

Opened the Android SDK to check if there were any updates, then I removed all library references from my project by selecting my project and under

打开Android SDK检查是否有任何更新,然后通过选择我的项目和下面,从我的项目中删除所有库引用

Project -> Properties -> Android -> Library section

项目->属性-> Android ->库部分。

removed all libraries including the one that started all this problem

删除了所有库,包括导致所有问题的库

Google_Play_Services_Lib

Google_Play_Services_Lib

then restarted Eclipse and copied from the Android SDK.The folder appcompat from:

然后重新启动Eclipse并从Android SDK中复制。文件夹appcompat:

android-sdk-linux/extras/android/support/v7

android-sdk-linux /配件/ android /支持/ v7

To my eclpse workspace, then imported it agan in to Eclipse from Import exsting project in workspace then choose the propper build tool version

到我的eclpse工作区,然后从工作区中的Import exsting项目将它导入Eclipse,然后选择propper构建工具版本

Android 5.0.1 api 21

Android 5.0.1 api 21

and added all my reference libraries, cleaned all projects and done everything was working again.

并增加了我所有的参考图书馆,清理了所有的项目,做了所有的工作,再次工作。

I choose for all my reference libraries the same build tool.

我为所有的参考库选择了相同的构建工具。

Hope this helps!!!!

希望这有助于! ! ! !

By the way I tried to give a vote but I haven't had enough rep to do it.

顺便说一下,我试着去投票,但是我没有足够的代表去投票。

#15


1  

Check adding google play services here as i was facing the same problem and removed everything then followed the steps and got everything working.

在这里检查添加谷歌播放服务,因为我遇到了相同的问题,并删除了所有内容,然后按照步骤执行,使所有内容都正常工作。

#16


1  

I ran into the same issue and had the right API level values in my build.gradle compileSdkVersion 21, targetSdkVersion 21 and a buildToolsVersion of 21.0.1

我遇到了相同的问题,并且在构建中具有正确的API级别值。gradle编译dkversion 21, targetSdkVersion 21和一个21.0.1的buildToolsVersion

However, I was including this as a module in my project so I had to make sure the other module gradle settings matched API 21. After that it all worked for me.

但是,我将它作为一个模块包含在我的项目中,所以我必须确保其他模块gradle设置与API 21匹配。从那以后,一切对我都起作用了。

#17


1  

I changed

我改变了

compile 'com.android.support:appcompat-v7:19.1.+'

into

compile 'com.android.support:appcompat-v7:22.1.+'

in build.gradle and after sync I didn't get any errors

在构建。在同步之后,我没有任何错误

#18


1  

In my case with Eclipse IDE, I had the same problem and the solution was:
1- Install the latest available API (SDK Platform & Google APIs)
2- Create the project with the following settings:

在使用Eclipse IDE时,我遇到了同样的问题,解决方案是:1-安装最新可用的API (SDK平台和谷歌API) 2-创建项目,设置如下:

  • Compile With: use the latest API version available at the time
  • 编译:使用当时可用的最新API版本
  • the other values can receive values according at your requirements (look at the meaning of each one in previous comments)
  • 其他值可以根据您的需求接收值(查看前面注释中每个值的含义)

#19


1  

For me works this:

对我来说工作:

android {
compileSdkVersion 21
buildToolsVersion '23.0'

defaultConfig {
    applicationId "nl.changer.polypickerdemo"
    minSdkVersion 15
    targetSdkVersion 21
---------
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.android.support:appcompat-v7:22.2.0'


}

I modified: compileSdkVersion 21 buildToolsVersion '23.0' appcompat-v7:22.2.0'

我修改:编译dkversion 21 buildToolsVersion '23.0' appcompat-v7:22.2.0'

#20


1  

I was facing this problem when I imported google-services.json file to implement Analytics. I already had global_tracker.xml file in the xml folder. During build, while merging contents from google-services.json file, the error was started occurring. For time being, the error is resolved after removing the goolgle-services.json file. And using the older Analytics solution.

我在导入google服务时遇到了这个问题。实现分析的json文件。我已经有了global_tracker。xml文件夹中的xml文件。在构建期间,合并来自google-services的内容。json文件,错误开始发生。目前,错误在删除goolge -services之后得到解决。json文件。使用旧的分析解决方案。

Check the last XML or Json file that you edited/imported and maybe you will file error there. That's what helped in my case.

检查您编辑/导入的最后一个XML或Json文件,可能会在那里出现错误。这对我有帮助。

#21


1  

THIS HELPED ME

这帮助我

  • Update the Android SDK to latest version
  • 更新Android SDK到最新版本。
  • Update app/build.gradle with latest components:

    更新应用程序/构建。gradle与最新的组件:

    compileSdkVersion 25  
    buildToolsVersion "25.0.2"  
    minSdkVersion 17  
    targetSdkVersion 25
    

Hope this solves your problem

希望这能解决你的问题

#22


1  

This works very well for me. Go to the android-support-v7-appcompat project and open the file "project.properties" and insert this lines if missing:

这对我很有效。进入android-support-v7-appcompat项目并打开文件“项目”。“属性”,如果缺少,插入以下行:

target=android-25
compile=android-21

#23


1  

I was facing the same issue for one of my phonegap project. To resolve this I have followed , following step

我的一个phonegap项目也面临同样的问题。为了解决这个问题,我遵循以下步骤

1) Right click on Project name (In my Case android) , select "Open Module Settings"

1)右键点击项目名称(我用的是android),选择“打开模块设置”

2) Select modules (android and CordovaLib)

2)选择模块(android和CordovaLib)

3) Click properties on top

3)点击上面的属性

4) Chose Compile SDK version (I have chosen API 26: Android 8.0 )

4)选择Compile SDK版本(我选择了API 26: Android 8.0)

5) Choose Build Tools Version (I have chosen 26.0.2)

5)选择构建工具版本(我选择了26.0.2)

6) Source Compatibility ( 1.6)

6)源兼容性(1.6)

7) Target Compatibility ( 1.6)

7)目标兼容性(1.6)

Click Ok and rebuild project.

单击Ok并重新构建项目。

Also one more additional step

还有一个额外的步骤

Add

添加

compile 'com.android.support:appcompat-v7:27.0.2'

编译“com.android.support:appcompat-v7:27.0.2”

build.gradle (Module:android)

构建。gradle(模块:android)

Following link shows my setting for step I have followed

下面的链接显示了我所遵循的步骤的设置

https://app.box.com/s/o11xc8dy0c2c7elsaoppa0kwe1d94ogh https://app.box.com/s/ofdcg0a8n0zalumvpyju58he402ag1th

https://app.box.com/s/o11xc8dy0c2c7elsaoppa0kwe1d94ogh https://app.box.com/s/ofdcg0a8n0zalumvpyju58he402ag1th


推荐阅读
  • MATLAB字典学习工具箱SPAMS:稀疏与字典学习的详细介绍、配置及应用实例
    SPAMS(Sparse Modeling Software)是一个强大的开源优化工具箱,专为解决多种稀疏估计问题而设计。该工具箱基于MATLAB,提供了丰富的算法和函数,适用于字典学习、信号处理和机器学习等领域。本文将详细介绍SPAMS的配置方法、核心功能及其在实际应用中的典型案例,帮助用户更好地理解和使用这一工具箱。 ... [详细]
  • 在软件开发过程中,经常需要将多个项目或模块进行集成和调试,尤其是当项目依赖于第三方开源库(如Cordova、CocoaPods)时。本文介绍了如何在Xcode中高效地进行多项目联合调试,分享了一些实用的技巧和最佳实践,帮助开发者解决常见的调试难题,提高开发效率。 ... [详细]
  • 本文详细介绍了 PHP 中对象的生命周期、内存管理和魔术方法的使用,包括对象的自动销毁、析构函数的作用以及各种魔术方法的具体应用场景。 ... [详细]
  • 单片机入门指南:基础理论与实践
    本文介绍了单片机的基础知识及其应用。单片机是一种将微处理器(类似于CPU)、存储器(类似硬盘和内存)以及多种输入输出接口集成在一块硅片上的微型计算机系统。通过详细解析其内部结构和功能,帮助初学者快速掌握单片机的基本原理和实际操作方法。 ... [详细]
  • 本文介绍了如何利用 `matplotlib` 库中的 `FuncAnimation` 类将 Python 中的动态图像保存为视频文件。通过详细解释 `FuncAnimation` 类的参数和方法,文章提供了多种实用技巧,帮助用户高效地生成高质量的动态图像视频。此外,还探讨了不同视频编码器的选择及其对输出文件质量的影响,为读者提供了全面的技术指导。 ... [详细]
  • 在尝试对 QQmlPropertyMap 类进行测试驱动开发时,发现其派生类中无法正常调用槽函数或 Q_INVOKABLE 方法。这可能是由于 QQmlPropertyMap 的内部实现机制导致的,需要进一步研究以找到解决方案。 ... [详细]
  • 在Linux系统中避免安装MySQL的简易指南
    在Linux系统中避免安装MySQL的简易指南 ... [详细]
  • Android 构建基础流程详解
    Android 构建基础流程详解 ... [详细]
  • 在探讨如何在Android的TextView中实现多彩文字与多样化字体效果时,本文提供了一种不依赖HTML技术的解决方案。通过使用SpannableString和相关的Span类,开发者可以轻松地为文本添加丰富的样式和颜色,从而提升用户体验。文章详细介绍了实现过程中的关键步骤和技术细节,帮助开发者快速掌握这一技巧。 ... [详细]
  • 为了在Hadoop 2.7.2中实现对Snappy压缩和解压功能的原生支持,本文详细介绍了如何重新编译Hadoop源代码,并优化其Native编译过程。通过这一优化,可以显著提升数据处理的效率和性能。此外,还探讨了编译过程中可能遇到的问题及其解决方案,为用户提供了一套完整的操作指南。 ... [详细]
  • 本文介绍如何使用OpenCV和线性支持向量机(SVM)模型来开发一个简单的人脸识别系统,特别关注在只有一个用户数据集时的处理方法。 ... [详细]
  • 本文回顾了作者初次接触Unicode编码时的经历,并详细探讨了ASCII、ANSI、GB2312、UNICODE以及UTF-8和UTF-16编码的区别和应用场景。通过实例分析,帮助读者更好地理解和使用这些编码。 ... [详细]
  • 解决Bootstrap DataTable Ajax请求重复问题
    在最近的一个项目中,我们使用了JQuery DataTable进行数据展示,虽然使用起来非常方便,但在测试过程中发现了一个问题:当查询条件改变时,有时查询结果的数据不正确。通过FireBug调试发现,点击搜索按钮时,会发送两次Ajax请求,一次是原条件的请求,一次是新条件的请求。 ... [详细]
  • 本文详细介绍了如何使用Python中的smtplib库来发送带有附件的邮件,并提供了完整的代码示例。作者:多测师_王sir,时间:2020年5月20日 17:24,微信:15367499889,公司:上海多测师信息有限公司。 ... [详细]
  • 如何使用 `org.apache.tomcat.websocket.server.WsServerContainer.findMapping()` 方法及其代码示例解析 ... [详细]
author-avatar
俊维肇民74
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有