Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

772
Views
Error: No resource identifier found for attribute `requestLegacyExternalStorage` and `preserveLegacyExternalStorage` in package `android`

I have decompiled APK using apktool d demoapp.apk then compiling apk using apktool b demoapp.apk but at compile time it throws the error

brut.androlib.AndrolibException: brut.common.BrutException: could not exec (exit code = 1):

Here No resource identifier found for attribute preserveLegacyExternalStorage in package android

The same error appears for requestLegacyExternalStorage as well

over 4 years ago · Santiago Trujillo
2 answers
Answer question

0

If you just want to modify its source before recompile it (resource will not be modified), use -r flag when decompile the apk. I have the same problem, and always get unknown resource problem when recompile it. It solve when I use -r flag when decompile the apk.

# apktool -r d demo.apk
over 4 years ago · Santiago Trujillo Report

0

You should compile against SDK 29 and maybe use the most recent build tools for aapt to know this attribute.

over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!