iBotPeaches / Apktool

A tool for reverse engineering Android apk files
https://apktool.org/
Apache License 2.0
20.16k stars 3.58k forks source link

can't not rebuild for the default apk builed by androidstudio #2245

Closed xqzc000 closed 3 years ago

xqzc000 commented 4 years ago

Information

1.apktool version 2.4.1 &2.4.0 2.Operating System:mac

  1. apk from androidstudio 3.5.1 build by default , ( build.gradle is as follows)
    android {
    compileSdkVersion 29
    buildToolsVersion "29.0.2"
    defaultConfig {
        applicationId "com.example.myapplication"
        minSdkVersion 21
        targetSdkVersion 28
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
        }
    }
    }

question:

Decoding is ok,and generate one directory , then do nothing but rebuild the apk by the directory ,then was told has erro.
like "No resource found that matches the given name ". No AndResGuard and DexProtector ,just an sample apk created by androidstudio.

Stacktrace/Logcat as follow:

apktool b app-debug
I: Using Apktool 2.4.1
I: Checking whether sources has changed...
I: Checking whether sources has changed...
I: Checking whether resources has changed...
I: Building resources...
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:45: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.RecentApplications'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:46: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.VolumePanel'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:47: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow.ActionMode'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:48: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:49: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.Dream'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:50: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Time'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:51: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Info'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:52: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Line2'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:53: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.Ticker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:54: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.StatusBar.EventContent.Emphasis'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:55: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Small.CalendarViewWeekDayView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:56: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Suggestion'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:57: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.EasyCorrectSuggestion'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:58: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:59: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:60: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.MisspelledSuggestion'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:61: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.AutoCorrectionSuggestion'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:62: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.GestureOverlayView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:68: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:69: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TextView.ListSeparator.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:70: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ExpandableListView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:71: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.NumberPicker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:72: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.TimePicker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:79: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.HorizontalScrollView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:93: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:94: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowSmall'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:95: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowMedium'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:96: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowLarge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:97: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall.WindowSmall'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:98: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall.WindowLarge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:99: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Theme.Dialog.AppError'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v24/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.DeviceDefault.CheckBoxPreference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v24/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.DeviceDefault.Category'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:4: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.DeviceDefault.Light.Medium'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:117: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:118: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/PreferenceFragment'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:119: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Animation.PopupWindow'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:120: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.SwitchPreference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:124: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadgeSmall'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:125: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.QuickContactBadge.WindowMedium'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:238: error: Error: No resource found that matches the given name: attr 'android:allowScaling'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:241: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:240: error: Error: No resource found that matches the given name: attr 'android:feedbackCount'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:236: error: Error: No resource found that matches the given name: attr 'android:firstItemOffset'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:235: error: Error: No resource found that matches the given name: attr 'android:glowRadius'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:237: error: Error: No resource found that matches the given name: attr 'android:magneticTargets'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:239: error: Error: No resource found that matches the given name: attr 'android:snapMargin'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:273: error: Error: No resource found that matches the given name: attr 'android:allowScaling'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:276: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:275: error: Error: No resource found that matches the given name: attr 'android:feedbackCount'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:271: error: Error: No resource found that matches the given name: attr 'android:firstItemOffset'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:270: error: Error: No resource found that matches the given name: attr 'android:glowRadius'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:272: error: Error: No resource found that matches the given name: attr 'android:magneticTargets'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:274: error: Error: No resource found that matches the given name: attr 'android:snapMargin'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:674: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:675: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu.Large'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:676: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.PopupMenu.Small'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:677: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.DropDownHint'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:680: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.ActionMode.Title'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:7: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.ActionMode.Title'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:699: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.WindowTitle'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:702: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.DialogWindowTitle'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:703: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.CalendarViewWeekDayView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:704: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Holo'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:8: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Holo'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:9: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.DeviceDefault.Light.Large.Inverse'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:715: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TextView.ListSeparator'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:716: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TextSuggestionsPopupWindow'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:718: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Gallery'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:719: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.GestureOverlayView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:742: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ImageWell'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:743: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ListView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:10: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.ListView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:746: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:757: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.QuickContactBadgeSmall.WindowLarge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:758: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.QuickContactBadgeSmall.WindowLarge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:759: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.CompoundButton.Switch'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:760: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.DeviceDefault.ProgressBar.Small.Inverse'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:767: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Spinner.DropDown.ActionBar'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:768: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.TabText'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:769: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.KeyboardView'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:771: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadge.WindowMedium'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:776: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadgeSmall.WindowMedium'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:777: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.QuickContactBadgeSmall.WindowLarge'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:778: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.Button.Borderless'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:11: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TextView.ListSeparator'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:12: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TextSelectHandle'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:813: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ExpandableListView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:817: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.NumberPicker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-ldltr/styles.xml:3: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TimePicker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:13: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.TimePicker'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:821: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ImageWell'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v23/styles.xml:14: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ImageWell'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:822: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.ListView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:824: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.Holo.Light.Spinner.DropDown.ActionBar'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:831: error: Error: No resource found that matches the given name: attr 'android:allowScaling'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:834: error: Error: No resource found that matches the given name: attr 'android:alwaysTrackFinger'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:833: error: Error: No resource found that matches the given name: attr 'android:feedbackCount'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:829: error: Error: No resource found that matches the given name: attr 'android:firstItemOffset'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:828: error: Error: No resource found that matches the given name: attr 'android:glowRadius'.
brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1): [/var/folders/1l/bfyvmd4n683_ysrxlr5_25s00000gn/T/brut_util_Jar_5260134574569033156.tmp, p, --forced-package-id, 127, --min-sdk-version, 21, --target-sdk-version, 28, --version-code, 1, --version-name, 1.0, --no-version-vectors, -F, /var/folders/1l/bfyvmd4n683_ysrxlr5_25s00000gn/T/APKTOOL5383857912719800109.tmp, -e, /var/folders/1l/bfyvmd4n683_ysrxlr5_25s00000gn/T/APKTOOL9044317956209434774.tmp, -0, arsc, -I, /Users/xx/Library/apktool/framework/1.apk, -S, /Users/xx/Desktop/apk/zz/app-debug/res, -M, /Users/xx/Desktop/apk/zz/app-debug/AndroidManifest.xml]
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:830: error: Error: No resource found that matches the given name: attr 'android:magneticTargets'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:832: error: Error: No resource found that matches the given name: attr 'android:snapMargin'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:838: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Holo.DialogPreference.YesNoPreference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:846: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.Switch'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v25/styles.xml:5: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Preference.Holo.DialogPreference.YesNoPreference'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values-v25/styles.xml:6: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/TextAppearance.Holo.Light.Widget.Switch'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:965: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.GestureOverlayView.White'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:966: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.ProgressBar.Small.Title'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:968: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.RatingBar.Small'.
W: 
W: /Users/xx/Desktop/apk/zz/app-debug/res/values/styles.xml:969: error: Error retrieving parent for item: No resource found that matches the given name '@android:style/Widget.CheckedTextView'.
W: 
Ticklefish commented 4 years ago

It looks like you didn't install any framework files before decompiling your APK.

Have a look here for more information: https://ibotpeaches.github.io/Apktool/documentation/#frameworks

You can use this framework-res.apk from Android 10 AOSP if you want: https://androidfilehost.com/?fid=4349826312261650364

xqzc000 commented 4 years ago

@Ticklefish it's not about framework files ,but thankyou all the same.

xqzc000 commented 4 years ago

@iBotPeaches can you help me ?

xqzc000 commented 4 years ago

i run 'apktool d -f -r apkfilename.apk' ,it 's normal for rebuild.

iBotPeaches commented 4 years ago

It does look framework related. Have you ran apktool empty-framework-dir --force ?

iBotPeaches commented 3 years ago

Looks like support. No response in almost a year. Closing.