Skip to content

Build Error: illegal attribute name: :tint  #84

@AbhiTheModder

Description

@AbhiTheModder

Creating the issue here as I believe this issue is related to ARSCLib side.

[BUILD] Using: APKEditor version 1.4.3, ARSCLib version 1.3.6
            -t = xml                                                            
      -dex-lib = jf                                                             
            -i = /home/abhi/merged_app_decompile      
            -o = "/home/abhi/Amaha                    
               = (InnerHour)_3.111.3-patched.apk"                               
 ______________________________________________________________________________ 
00.019 I: [BUILD] Scanning XML directory ...
00.073 I: [BUILD] Scanning: merged_app_decompile
00.475 I: [BUILD] Initializing android framework ...
00.476 I: [BUILD] Loading android framework for version: 35
00.776 I: [BUILD] Initialized framework: android-35 (15)
00.777 I: [BUILD] Set main package id from manifest: @mipmap/ic_launcher
00.781 I: [BUILD] Main package id initialized: id = 0x7f, from: @mipmap/ic_launcher
00.781 I: [BUILD] Encoding attrs ...
00.911 I: [BUILD] Encoding values ...
02.558 I: [BUILD] Scan: package_1/res
02.739 I: [BUILD] Scanned 4548 files: package_1/res
03.147 I: [BUILD] Add manifest: AndroidManifest.xml
03.148 I: [BUILD] Building dex ...
03.477 I: [BUILD] (1/4) Smali<JF>: classes.dex
18.448 I: [BUILD] (2/4) Smali<JF>: classes2.dex
27.205 I: [BUILD] (3/4) Cached: classes3.dex
27.210 I: [BUILD] (4/4) Cached: classes4.dex
27.210 I: [BUILD] Scanning root directory ...
27.217 I: [BUILD] Restoring original file paths ...
27.249 I: [BUILD] Loading signatures ...
27.254 I: [BUILD] Sorting files ...
27.313 I: [BUILD] Refreshing resource table ...
27.443 I: [BUILD] TableBlock: packages = 1, size = 4510116 bytes
27.443 I: [BUILD] Applying: extractNativeLibs=true
27.443 I: [BUILD] Writing apk...
27.470 I: [BUILD] Buffering compress changed files ...

ERROR:
java.io.IOException: org.xmlpull.v1.XmlPullParserException: illegal attribute name: :tint (position: at /home/abhi/merged_app_decompile/resources/package_1/res/layout/fragment_screen_s13.xml [91:39]
START_TAG (empty) <ImageButton android:textColor='@color/seaSerpent' android:id='@id/imgTextAdd' android:background='@color/transparent' android:paddingTop='5.0dp' android:visibility='invisible' android:layout_width='wrap_content' android:layout_height='wrap_content' android:layout_marginRight='16.0dp' android:layout_marginBottom='16.0dp' android:layout_alignParentRight='true' android:layout_marginEnd='16.0dp' app:srcCompat='@drawable/ic_check_circle' app:tint='@color/template_grey_1' :tint='@color/sea'>) 
	at com.reandroid.apk.xmlencoder.XMLEncodeSource.getArray(XMLEncodeSource.java:67)
	at com.reandroid.apk.xmlencoder.XMLEncodeSource.write(XMLEncodeSource.java:41)
	at com.reandroid.archive.writer.OutputSource.writeBuffer(OutputSource.java:58)
	at com.reandroid.archive.writer.FileOutputSource.writeBuffer(FileOutputSource.java:46)
	at com.reandroid.archive.writer.FileOutputSource.makeBuffer(FileOutputSource.java:42)
	at com.reandroid.archive.writer.ApkFileWriter.writeBuffer(ApkFileWriter.java:81)
	at com.reandroid.archive.writer.ApkFileWriter.prepareOutputs(ApkFileWriter.java:43)
	at com.reandroid.archive.writer.ApkFileWriter.prepareOutputs(ApkFileWriter.java:27)
	at com.reandroid.archive.writer.ApkWriter.write(ApkWriter.java:51)
	at com.reandroid.apk.ApkModule.writeApk(ApkModule.java:504)
	at com.reandroid.apkeditor.compile.Builder.writeApk(Builder.java:138)
	at com.reandroid.apkeditor.compile.Builder.buildXml(Builder.java:108)
	at com.reandroid.apkeditor.compile.Builder.runCommand(Builder.java:46)
	at com.reandroid.apkeditor.Options.runCommand(Options.java:59)
	at com.reandroid.apkeditor.Main.run(Main.java:136)
	at com.reandroid.apkeditor.Main.execute(Main.java:72)
	at com.reandroid.apkeditor.Main.main(Main.java:57)
Caused by: org.xmlpull.v1.XmlPullParserException: illegal attribute name: :tint (position: at /home/abhi/merged_app_decompile/resources/package_1/res/layout/fragment_screen_s13.xml [91:39]
START_TAG (empty) <ImageButton android:textColor='@color/seaSerpent' android:id='@id/imgTextAdd' android:background='@color/transparent' android:paddingTop='5.0dp' android:visibility='invisible' android:layout_width='wrap_content' android:layout_height='wrap_content' android:layout_marginRight='16.0dp' android:layout_marginBottom='16.0dp' android:layout_alignParentRight='true' android:layout_marginEnd='16.0dp' app:srcCompat='@drawable/ic_check_circle' app:tint='@color/template_grey_1' :tint='@color/sea'>) 
	at com.reandroid.xml.kxml2.KXmlParser.adjustNsp(KXmlParser.java:254)
	at com.reandroid.xml.kxml2.KXmlParser.parseStartTag(KXmlParser.java:1158)
	at com.reandroid.xml.kxml2.KXmlParser.next(KXmlParser.java:376)
	at com.reandroid.xml.kxml2.KXmlParser.nextToken(KXmlParser.java:321)
	at com.reandroid.xml.CloseableParser.nextToken(CloseableParser.java:55)
	at com.reandroid.arsc.chunk.xml.ResXmlTextNode.parse(ResXmlTextNode.java:197)
	at com.reandroid.arsc.chunk.xml.ResXmlDocumentOrElement.parseInnerNodes(ResXmlDocumentOrElement.java:275)
	at com.reandroid.arsc.chunk.xml.ResXmlElement.parse(ResXmlElement.java:527)
	at com.reandroid.arsc.chunk.xml.ResXmlDocumentOrElement.parseInnerNodes(ResXmlDocumentOrElement.java:275)
	at com.reandroid.arsc.chunk.xml.ResXmlElement.parse(ResXmlElement.java:527)
	at com.reandroid.arsc.chunk.xml.ResXmlDocumentOrElement.parseInnerNodes(ResXmlDocumentOrElement.java:275)
	at com.reandroid.arsc.chunk.xml.ResXmlDocument.parse(ResXmlDocument.java:276)
	at com.reandroid.apk.xmlencoder.XMLEncodeSource.encode(XMLEncodeSource.java:83)
	at com.reandroid.apk.xmlencoder.XMLEncodeSource.getArray(XMLEncodeSource.java:65)
	... 16 more

Application: Amaha (InnerHour) 3.111.3-276
Play Store: https://play.google.com/store/apps/details?id=com.theinnerhour.b2b

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions