Fork me on GitHub

Fighting the dex method count limit? This page is for you.

Since we can only run the dex counter on APKs, the best estimates we can give are on the sample/example applications.

So in general, osmdroid is pretty small in terms of method counts. Just the base osmdroid-android library is around 2k methods. The sample app, geopackage, mapsforge and the android support libraries they require, increase this to nearly 40k. The breakdown is below for version 5.6.5. For the last release version, see http://osmdroid.github.io/osmdroid/reports/OpenStreetMapViewer/dex-count/index.html.

Processing C:\projects\osmdroid\OpenStreetMapViewer\build\outputs\apk\OpenStreetMapViewer-5.6.6-SNAPSHOT-debug.apk
Read in 40162 method IDs and 21067 field IDs
----------------------------------
Package details:
(default) Methods 1 Fields 0
android Methods 20444 Fields 8910
	accessibilityservice Methods 6 Fields 0
	animation Methods 40 Fields 0
	app Methods 268 Fields 26
	content Methods 295 Fields 30
		pm Methods 25 Fields 24
		res Methods 95 Fields 5
	database Methods 77 Fields 0
		sqlite Methods 35 Fields 0
	graphics Methods 414 Fields 56
		drawable Methods 106 Fields 0
			shapes Methods 2 Fields 0
		pdf Methods 3 Fields 0
	hardware Methods 22 Fields 2
		display Methods 3 Fields 0
		fingerprint Methods 11 Fields 0
	location Methods 18 Fields 0
	media Methods 181 Fields 3
		browse Methods 17 Fields 1
		session Methods 87 Fields 0
	net Methods 37 Fields 2
	os Methods 186 Fields 15
	preference Methods 13 Fields 0
	print Methods 23 Fields 3
		pdf Methods 5 Fields 0
	provider Methods 10 Fields 0
	speech Methods 6 Fields 0
		tts Methods 6 Fields 0
	support Methods 17176 Fields 8722
		design Methods 1755 Fields 2224
			internal Methods 187 Fields 52
			widget Methods 1553 Fields 608
		graphics Methods 303 Fields 165
			drawable Methods 303 Fields 165
				animated Methods 1 Fields 6
		v4 Methods 9020 Fields 2818
			accessibilityservice Methods 41 Fields 13
			animation Methods 62 Fields 17
			app Methods 1633 Fields 770
			content Methods 293 Fields 111
				pm Methods 1 Fields 1
				res Methods 20 Fields 0
			database Methods 3 Fields 0
			graphics Methods 316 Fields 51
				drawable Methods 261 Fields 42
			hardware Methods 85 Fields 16
				display Methods 19 Fields 4
				fingerprint Methods 66 Fields 12
			internal Methods 74 Fields 9
				view Methods 74 Fields 9
			media Methods 1463 Fields 609
				session Methods 818 Fields 272
			net Methods 64 Fields 5
			os Methods 68 Fields 19
			print Methods 84 Fields 49
			provider Methods 96 Fields 9
			speech Methods 14 Fields 5
				tts Methods 14 Fields 5
			text Methods 103 Fields 55
			util Methods 283 Fields 74
			view Methods 2935 Fields 505
				accessibility Methods 1116 Fields 112
				animation Methods 29 Fields 8
			widget Methods 1402 Fields 495
		v7 Methods 6098 Fields 3515
			app Methods 968 Fields 378
			appcompat Methods 15 Fields 1253
			cardview Methods 8 Fields 42
			graphics Methods 69 Fields 18
				drawable Methods 69 Fields 18
			recyclerview Methods 7 Fields 20
			text Methods 3 Fields 1
			transition Methods 2 Fields 2
			util Methods 140 Fields 93
			view Methods 744 Fields 268
				menu Methods 588 Fields 191
			widget Methods 4142 Fields 1440
				helper Methods 150 Fields 89
				util Methods 5 Fields 1
	telephony Methods 1 Fields 0
	text Methods 60 Fields 8
		format Methods 10 Fields 1
		method Methods 3 Fields 0
		style Methods 2 Fields 0
	transition Methods 17 Fields 0
	util Methods 61 Fields 15
	view Methods 919 Fields 18
		accessibility Methods 215 Fields 0
		animation Methods 36 Fields 0
		inputmethod Methods 2 Fields 1
	webkit Methods 4 Fields 0
	widget Methods 610 Fields 10
ar Methods 1005 Fields 550
	com Methods 1005 Fields 550
		hjg Methods 1005 Fields 550
			pngj Methods 1005 Fields 550
				chunks Methods 349 Fields 201
				pixels Methods 150 Fields 129
ch Methods 1 Fields 1
	acra Methods 1 Fields 1
		acra Methods 1 Fields 1
com Methods 5985 Fields 2447
	caverock Methods 685 Fields 696
		androidsvg Methods 685 Fields 696
	github Methods 146 Fields 132
		angads25 Methods 146 Fields 132
			filepicker Methods 146 Fields 132
				controller Methods 15 Fields 11
					adapters Methods 13 Fields 11
				model Methods 24 Fields 20
				utils Methods 6 Fields 2
				view Methods 65 Fields 23
				widget Methods 23 Fields 8
	j256 Methods 2409 Fields 773
		ormlite Methods 2409 Fields 773
			android Methods 305 Fields 146
				apptools Methods 156 Fields 42
					support Methods 19 Fields 3
				compat Methods 15 Fields 20
			dao Methods 475 Fields 60
			db Methods 135 Fields 6
			field Methods 646 Fields 253
				types Methods 393 Fields 63
			logger Methods 124 Fields 36
			misc Methods 45 Fields 9
			stmt Methods 507 Fields 231
				mapped Methods 77 Fields 58
				query Methods 90 Fields 42
			support Methods 100 Fields 8
			table Methods 72 Fields 24
	squareup Methods 2745 Fields 846
		haha Methods 2314 Fields 565
			guava Methods 1733 Fields 307
				base Methods 170 Fields 42
				collect Methods 1560 Fields 264
				primitives Methods 3 Fields 1
			perflib Methods 325 Fields 189
				analysis Methods 16 Fields 10
				io Methods 33 Fields 10
			trove Methods 256 Fields 69
		leakcanary Methods 431 Fields 281
			analyzer Methods 1 Fields 6
			internal Methods 133 Fields 64
			watcher Methods 1 Fields 6
java Methods 1226 Fields 38
	awt Methods 8 Fields 0
		image Methods 8 Fields 0
	io Methods 178 Fields 5
	lang Methods 417 Fields 18
		annotation Methods 0 Fields 5
		ref Methods 10 Fields 0
		reflect Methods 37 Fields 0
	math Methods 7 Fields 1
	net Methods 36 Fields 0
	nio Methods 34 Fields 4
		channels Methods 1 Fields 1
		charset Methods 1 Fields 1
	sql Methods 11 Fields 0
	text Methods 25 Fields 0
	util Methods 510 Fields 10
		concurrent Methods 81 Fields 3
			atomic Methods 24 Fields 0
			locks Methods 7 Fields 0
		logging Methods 6 Fields 3
		regex Methods 7 Fields 0
		zip Methods 37 Fields 0
javax Methods 31 Fields 4
	annotation Methods 3 Fields 0
		processing Methods 3 Fields 0
	lang Methods 0 Fields 1
		model Methods 0 Fields 1
	net Methods 8 Fields 0
		ssl Methods 8 Fields 0
	persistence Methods 13 Fields 2
	tools Methods 0 Fields 1
	xml Methods 7 Fields 0
		parsers Methods 7 Fields 0
junit Methods 1 Fields 0
	framework Methods 1 Fields 0
microsoft Methods 15 Fields 7
	mappoint Methods 15 Fields 7
mil Methods 3382 Fields 1152
	nga Methods 3382 Fields 1152
		geopackage Methods 2734 Fields 872
			attributes Methods 32 Fields 2
			core Methods 177 Fields 85
				contents Methods 75 Fields 38
				srs Methods 102 Fields 47
			db Methods 231 Fields 79
				metadata Methods 116 Fields 49
			extension Methods 620 Fields 198
				elevation Methods 289 Fields 100
				index Methods 150 Fields 46
				link Methods 70 Fields 14
			factory Methods 190 Fields 20
			features Methods 267 Fields 70
				columns Methods 130 Fields 48
				index Methods 67 Fields 16
				user Methods 70 Fields 6
			geom Methods 27 Fields 8
			io Methods 23 Fields 0
			metadata Methods 76 Fields 61
				reference Methods 44 Fields 25
			persister Methods 6 Fields 2
			projection Methods 89 Fields 31
			property Methods 16 Fields 20
			schema Methods 108 Fields 45
				columns Methods 49 Fields 18
				constraints Methods 51 Fields 25
			tiles Methods 476 Fields 148
				features Methods 103 Fields 44
					custom Methods 18 Fields 7
				matrix Methods 60 Fields 22
				matrixset Methods 31 Fields 16
				overlay Methods 18 Fields 5
				retriever Methods 33 Fields 14
				user Methods 130 Fields 18
			user Methods 188 Fields 46
			validate Methods 5 Fields 0
		tiff Methods 315 Fields 215
			compression Methods 29 Fields 8
			io Methods 56 Fields 5
			util Methods 5 Fields 56
		wkb Methods 333 Fields 65
			geom Methods 194 Fields 42
			io Methods 52 Fields 8
			util Methods 87 Fields 15
org Methods 8065 Fields 7958
	acra Methods 558 Fields 290
		annotation Methods 43 Fields 0
		collector Methods 82 Fields 65
		jraf Methods 41 Fields 3
			android Methods 41 Fields 3
				util Methods 41 Fields 3
					activitylifecyclecallbackscompat Methods 41 Fields 3
		log Methods 38 Fields 0
		sender Methods 31 Fields 15
		util Methods 50 Fields 10
	json Methods 18 Fields 0
	kxml2 Methods 251 Fields 156
		io Methods 88 Fields 48
		kdom Methods 56 Fields 20
		wap Methods 107 Fields 88
			syncml Methods 6 Fields 3
			wml Methods 4 Fields 3
			wv Methods 3 Fields 13
	mapsforge Methods 2220 Fields 1260
		core Methods 383 Fields 142
			graphics Methods 172 Fields 57
			mapelements Methods 25 Fields 27
			model Methods 115 Fields 40
			util Methods 71 Fields 18
		map Methods 1837 Fields 1118
			android Methods 479 Fields 163
				graphics Methods 163 Fields 69
				input Methods 72 Fields 41
				rendertheme Methods 7 Fields 4
				rotation Methods 91 Fields 6
				util Methods 82 Fields 9
				view Methods 63 Fields 28
			controller Methods 16 Fields 8
			datastore Methods 48 Fields 23
			layer Methods 572 Fields 282
				cache Methods 103 Fields 25
				debug Methods 13 Fields 8
				download Methods 99 Fields 54
					tilesource Methods 65 Fields 34
				hills Methods 41 Fields 20
				labels Methods 31 Fields 28
				overlay Methods 56 Fields 29
				queue Methods 28 Fields 15
				renderer Methods 127 Fields 80
				tilestore Methods 3 Fields 1
			model Methods 132 Fields 58
				common Methods 25 Fields 2
			reader Methods 118 Fields 153
				header Methods 33 Fields 85
			rendertheme Methods 323 Fields 337
				renderinstruction Methods 95 Fields 176
				rule Methods 146 Fields 123
			scalebar Methods 69 Fields 58
			util Methods 34 Fields 11
			view Methods 46 Fields 25
	metalev Methods 58 Fields 74
		multitouch Methods 58 Fields 74
			controller Methods 58 Fields 74
	osgeo Methods 844 Fields 931
		proj4j Methods 844 Fields 931
			cmd Methods 9 Fields 8
			datum Methods 39 Fields 80
			io Methods 32 Fields 45
			parser Methods 33 Fields 51
			proj Methods 586 Fields 634
			units Methods 31 Fields 56
			util Methods 48 Fields 32
	osmdroid Methods 3991 Fields 5220
		api Methods 45 Fields 1
		bugtestfragments Methods 129 Fields 66
		config Methods 108 Fields 26
		constants Methods 0 Fields 11
		debug Methods 95 Fields 30
			browser Methods 11 Fields 2
			model Methods 11 Fields 5
			util Methods 54 Fields 15
		events Methods 23 Fields 12
		gpkg Methods 261 Fields 192
			overlay Methods 207 Fields 70
				features Methods 179 Fields 61
			tiles Methods 44 Fields 21
				feature Methods 13 Fields 10
				raster Methods 31 Fields 11
		intro Methods 66 Fields 23
		library Methods 6 Fields 66
		mapsforge Methods 34 Fields 81
		model Methods 14 Fields 3
		samplefragments Methods 1007 Fields 472
			animations Methods 64 Fields 39
			cache Methods 145 Fields 77
			data Methods 208 Fields 107
				utils Methods 2 Fields 0
			drawing Methods 32 Fields 33
			events Methods 82 Fields 40
			geopackage Methods 73 Fields 22
			layouts Methods 91 Fields 34
				pager Methods 13 Fields 2
				rec Methods 20 Fields 11
			location Methods 66 Fields 36
			models Methods 21 Fields 3
			tileproviders Methods 55 Fields 18
			tilesources Methods 106 Fields 41
			ui Methods 26 Fields 13
		samples Methods 45 Fields 25
		tileprovider Methods 699 Fields 314
			cachemanager Methods 100 Fields 25
			constants Methods 5 Fields 13
			modules Methods 272 Fields 81
			tilesource Methods 157 Fields 106
				bing Methods 26 Fields 35
			util Methods 35 Fields 27
		util Methods 183 Fields 59
			constants Methods 1 Fields 6
		views Methods 1058 Fields 527
			drawing Methods 9 Fields 7
			overlay Methods 790 Fields 416
				compass Methods 39 Fields 22
				gestures Methods 19 Fields 12
				gridlines Methods 8 Fields 9
				infowindow Methods 26 Fields 13
				mylocation Methods 77 Fields 55
				simplefastpoint Methods 80 Fields 51
			util Methods 14 Fields 18
				constants Methods 1 Fields 17
		wms Methods 66 Fields 1205
	slf4j Methods 16 Fields 0
	w3c Methods 14 Fields 0
		dom Methods 14 Fields 0
	xml Methods 14 Fields 0
		sax Methods 14 Fields 0
			ext Methods 1 Fields 0
	xmlpull Methods 81 Fields 27
		v1 Methods 81 Fields 27
sun Methods 2 Fields 0
	misc Methods 1 Fields 0
	nio Methods 1 Fields 0
		ch Methods 1 Fields 0
Processed C:\projects\osmdroid\OpenStreetMapViewer\build\outputs\apk\OpenStreetMapViewer-5.6.6-SNAPSHOT-debug.apk
Read in 40162 method IDs and 21067 field IDs
----------------------------------