Skip to content Skip to sidebar Skip to footer

Has No Default Translation And R Is Not Being Generated

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 translat

Solution 1:

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

Solution 2:

1/ The translations:

You have to set the translation in your res forders.

You will find folders for the differents languages already set andin each of them you have the xml file: string.xml.

In this file you will have to set the translation of accessibility_search_button, accessibility_voice_search_button, all_apps_cling_add_item and all_apps_cling_title.

enter image description here

2/ The styles:

In your style.xml file you have to create the theme "Theme" because you're apparently trying to use it but it's not set yet.

Hope it helps.

Post a Comment for "Has No Default Translation And R Is Not Being Generated"