4

I am generating an android apk using gradle system from command line. Although the generated apk has correct timestamp(i.e modified time), apk components (for eg classes.dex) have wrong timestamp - Fri, Nov 30 1979 00:00:00. What can be the possible cause of this problem?

  • Can you paste the path where you are seeing the `classes.dex` file. Are you making a debug build ? – Dibzmania Feb 12 '17 at 02:01
  • Yes, I am generating an apk in debug mode by using following command : ./gradlew assembleDebug. I am checking the classes.dex files by simply extracting apk componets by archive manger. Path of the generated dex files is test.apk_FILES/classes.dex – Vaibhavi Kalgutkar Feb 12 '17 at 02:05
  • try `clean` before `assembleDebug`. All your build artifacts will be deleted and built again – Dibzmania Feb 12 '17 at 02:54
  • 1
    @Dibzmania Still the same issue persists. – Vaibhavi Kalgutkar Feb 12 '17 at 16:32
  • This is still a problem in 2020. Some utils that read APKs as zips will choke on them now because they aren't _really_ valid zip entries. –  Mar 11 '20 at 20:07

0 Answers0