{"action":"created","issue":{"url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/48","repository_url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin","labels_url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/48/labels{/name}","comments_url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/48/comments","events_url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/48/events","html_url":"https://github.com/KeepSafe/dexcount-gradle-plugin/issues/48","id":130913202,"number":48,"title":"Wrong counts?","user":{"login":"Orbyt","id":8474654,"avatar_url":"https://avatars.githubusercontent.com/u/8474654?v=3","gravatar_id":"","url":"https://api.github.com/users/Orbyt","html_url":"https://github.com/Orbyt","followers_url":"https://api.github.com/users/Orbyt/followers","following_url":"https://api.github.com/users/Orbyt/following{/other_user}","gists_url":"https://api.github.com/users/Orbyt/gists{/gist_id}","starred_url":"https://api.github.com/users/Orbyt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Orbyt/subscriptions","organizations_url":"https://api.github.com/users/Orbyt/orgs","repos_url":"https://api.github.com/users/Orbyt/repos","events_url":"https://api.github.com/users/Orbyt/events{/privacy}","received_events_url":"https://api.github.com/users/Orbyt/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-03T05:02:58Z","updated_at":"2016-02-03T07:01:42Z","closed_at":null,"body":"Getting these numbers with this plugin:\r\n\r\nTotal methods in app-debug.apk: 138351\r\nTotal fields in app-debug.apk:  50498\r\nMethods remaining in app-debug.apk: -72816\r\nFields remaining in app-debug.apk:  15037\r\n\r\nI definitely dont have 138351 methods as im not using multidex so if I did have that many methods I would of gotten an error."},"comment":{"url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/comments/179052808","html_url":"https://github.com/KeepSafe/dexcount-gradle-plugin/issues/48#issuecomment-179052808","issue_url":"https://api.github.com/repos/KeepSafe/dexcount-gradle-plugin/issues/48","id":179052808,"user":{"login":"benjamin-bader","id":512212,"avatar_url":"https://avatars.githubusercontent.com/u/512212?v=3","gravatar_id":"","url":"https://api.github.com/users/benjamin-bader","html_url":"https://github.com/benjamin-bader","followers_url":"https://api.github.com/users/benjamin-bader/followers","following_url":"https://api.github.com/users/benjamin-bader/following{/other_user}","gists_url":"https://api.github.com/users/benjamin-bader/gists{/gist_id}","starred_url":"https://api.github.com/users/benjamin-bader/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benjamin-bader/subscriptions","organizations_url":"https://api.github.com/users/benjamin-bader/orgs","repos_url":"https://api.github.com/users/benjamin-bader/repos","events_url":"https://api.github.com/users/benjamin-bader/events{/privacy}","received_events_url":"https://api.github.com/users/benjamin-bader/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T07:01:42Z","updated_at":"2016-02-03T07:01:42Z","body":"Thanks, I'd very much appreciate seeing `debug.txt`; it will help me work backwards and figure out what is being counted incorrectly.\r\n\r\nI strongly suspect that the plugin is just double, triple, or quadruple-counting methods.  Even targeting API 21+, builds over 65K should just fail.\r\n\r\nOne other way to verify, above and beyond posting `debug.txt`, is to actually examine `app-debug.apk`.  I'm sure you're familiar with the APK format.  If you unzip it and find `classes.dex`, what's the output of the following bash command: `cat classes.dex | head -c 92 | tail -c 4 | hexdump -e '1/4 \"%d\\n\"'`"}}