没有默认翻译,R没有被生成 [英] Has no default translation and R is not being generated
问题描述
Hello all!
我正在编译Trebuchet Launcher,它是一个开源软件。问题是,我一直在编译错误的字符串没有默认翻译,最重要的是一个R没有生成。
因此,在xml文件失败后,我从未找到的资源中收到错误。
使用Eclipse。
我试过了:
到项目属性和忽略MissingTranslation,它仍然没有工作。
检查xml文件,如果他们错过了任何行或者他们是不知何故损坏,他们似乎仍然
检查了各种关于stackoverflow相关问题的建议,但仍然没有运气。 strong>启动器上的Git链接
https ://github.com/CyanogenMod/android_packages_apps_Trebuchet
为您提供所有想法
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning:string'accessibility_search_button'没有默认翻译。
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning:string'accessibility_voice_search_button'没有默认翻译。
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning:string'all_apps_cling_add_item'没有默认翻译。
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning:string'all_apps_cling_title'没有默认翻译。
[2016-01-19 20:14:46 - ToggleWeightWatcher] C:\Users\Arlind\trebouche\AndroidManifest.xml:92:error:Error:No resource found that matches给定的名称(在'主题'中,值为'@ style / Theme')。
[2016-01-19 20:14:46 - ToggleWeightWatcher]
[2016-01-19 20:14:46 - ToggleWeightWatcher] C:\ Users \Arlind\trebouche\AndroidManifest .xml:110:错误:错误:找不到与给定名称匹配的资源(在'主题'中使用值'@ style / Theme')。
在AndroidManifest.xml第113行中提到:
android:theme =@ style / Theme
如果您使用搜索的这种风格没有在res /文件夹中的任何位置定义(仅在WallpaperPicker res /文件夹中)。还要注意Android.mk文件,它是构建项目的一个makefile文件。此文件定义为资源目录:
LOCAL_RESOURCE_DIR:= $(LOCAL_PATH)/ WallpaperPicker / res $(LOCAL_PATH)/ res
所以如果使用这个makefile构建项目,构建可能会成功。否则,你必须通过创建一个style.xml文件来指定res /文件夹中的Theme风格。
Hello all !
I am trying to compile the Trebuchet Launcher which is an open source one. The problem is that I keep getting compiling errors on strings which have no default translation, on top of that one R is not generated. So after the xml file fails, I get errors from resources that are not found. Using Eclipse.
What I have Tried :
Went to the project Properties and Ignored the MissingTranslation, it still did not work.
Checked the xml files if they were missing any lines or if they were corrupted somehow, still they seem ok.
Checked various suggestions on kind of related questions here on stackoverflow, but still no luck.
Git Link on the Launcher
https://github.com/CyanogenMod/android_packages_apps_Trebuchet
To give you all an idea
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning: string 'accessibility_search_button' has no default translation.
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning: string 'accessibility_voice_search_button' has no default translation.
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning: string 'all_apps_cling_add_item' has no default translation.
[2016-01-19 20:14:46 - ToggleWeightWatcher] warning: string 'all_apps_cling_title' has no default translation.
[2016-01-19 20:14:46 - ToggleWeightWatcher] C:\Users\Arlind\trebouche\AndroidManifest.xml:92: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme').
[2016-01-19 20:14:46 - ToggleWeightWatcher]
[2016-01-19 20:14:46 - ToggleWeightWatcher] C:\Users\Arlind\trebouche\AndroidManifest.xml:110: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme').
In AndroidManifest.xml line 113 mentions:
android:theme="@style/Theme"
This style if you use search is not defined anywhere in the res/ folder (only inside the WallpaperPicker res/ folder). Also note the Android.mk file which is what it seems a makefile for building the project. This file defines as resources dir:
LOCAL_RESOURCE_DIR := $(LOCAL_PATH)/WallpaperPicker/res $(LOCAL_PATH)/res
so if you build the project using this makefile the build will probably succeed. Else you have to specify the "Theme" style inside the res/ folder by creating a style.xml file
这篇关于没有默认翻译,R没有被生成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!