Android Question Error compiling with 11.50 version

Juan Vargas (Bioagro)

Member
Licensed User
I get this message when compiling. the problem didn't happens before. What Should I do? I dont know where to begin.


Error compilation Dex:
B4A Version: 11.50
Parsing code.    (1.93s)
    Java Version: 11
Building folders structure.    (0.33s)
Compiling code.    (1.98s)
    
ObfuscatorMap.txt file created in Objects folder.
Compiling layouts code.    (0.71s)
Organizing libraries.    (2.95s)
    (AndroidX SDK)
Compiling resources    (3.33s)
Linking resources    (3.21s)
Compiling generated Java code.    (15.89s)
Finding libraries that need to be dexed.    (0.04s)
Dex: B4AShared    (2.93s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-v4\1.0.0\unpacked-legacy-support-v4-1.0.0\jars\classes    (1.42s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\core\core\1.5.0\unpacked-core-1.5.0\jars\classes    (4.98s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-runtime\2.3.1\unpacked-lifecycle-runtime-2.3.1\jars\classes    (2.48s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\versionedparcelable\versionedparcelable\1.1.1\unpacked-versionedparcelable-1.1.1\jars\classes    (2.78s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\media\media\1.3.1\unpacked-media-1.3.1\jars\classes    (3.54s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-utils\1.0.0\unpacked-legacy-support-core-utils-1.0.0\jars\classes    (2.46s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\documentfile\documentfile\1.0.1\unpacked-documentfile-1.0.1\jars\classes    (2.52s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\loader\loader\1.1.0\unpacked-loader-1.1.0\jars\classes    (2.47s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-livedata-core\2.3.1\unpacked-lifecycle-livedata-core-2.3.1\jars\classes    (2.20s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel\2.3.1\unpacked-lifecycle-viewmodel-2.3.1\jars\classes    (2.16s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\localbroadcastmanager\localbroadcastmanager\1.0.0\unpacked-localbroadcastmanager-1.0.0\jars\classes    (2.62s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\print\print\1.0.0\unpacked-print-1.0.0\jars\classes    (2.62s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\legacy\legacy-support-core-ui\1.0.0\unpacked-legacy-support-core-ui-1.0.0\jars\classes    (2.62s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\customview\customview\1.1.0\unpacked-customview-1.1.0\jars\classes    (2.74s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\viewpager\viewpager\1.0.0\unpacked-viewpager-1.0.0\jars\classes    (2.59s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\coordinatorlayout\coordinatorlayout\1.1.0\unpacked-coordinatorlayout-1.1.0\jars\classes    (2.33s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\drawerlayout\drawerlayout\1.1.1\unpacked-drawerlayout-1.1.1\jars\classes    (2.71s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\slidingpanelayout\slidingpanelayout\1.1.0\unpacked-slidingpanelayout-1.1.0\jars\classes    (2.49s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\interpolator\interpolator\1.0.0\unpacked-interpolator-1.0.0\jars\classes    (1.92s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\swiperefreshlayout\swiperefreshlayout\1.1.0\unpacked-swiperefreshlayout-1.1.0\jars\classes    (2.62s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\asynclayoutinflater\asynclayoutinflater\1.0.0\unpacked-asynclayoutinflater-1.0.0\jars\classes    (2.03s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\cursoradapter\cursoradapter\1.0.0\unpacked-cursoradapter-1.0.0\jars\classes    (2.44s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\fragment\fragment\1.3.4\unpacked-fragment-1.3.4\jars\classes    (3.81s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\fragment\fragment\1.3.4\unpacked-fragment-1.3.4\jars\lint    (2.22s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\activity\activity\1.2.3\unpacked-activity-1.2.3\jars\classes    (2.89s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\activity\activity\1.2.3\unpacked-activity-1.2.3\jars\lint    (2.44s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\savedstate\savedstate\1.1.0\unpacked-savedstate-1.1.0\jars\classes    (2.51s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-viewmodel-savedstate\2.3.1\unpacked-lifecycle-viewmodel-savedstate-2.3.1\jars\classes    (2.48s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\annotation\annotation-experimental\1.1.0\unpacked-annotation-experimental-1.1.0\jars\classes    (2.30s)
Dex: c:\android\tools\..\extras\b4a_remote\androidx\annotation\annotation-experimental\1.1.0\unpacked-annotation-experimental-1.1.0\jars\lint    (2.46s)
Dex: c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-maps\17.0.1\unpacked-play-services-maps-17.0.1\jars\classes    (3.53s)
Dex: c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-base\17.6.0\unpacked-play-services-base-17.6.0\jars\classes    (3.89s)
Dex: c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-basement\17.6.0\unpacked-play-services-basement-17.6.0\jars\classes    (3.80s)
Dex: c:\android\tools\..\extras\b4a_remote\com\google\android\gms\play-services-tasks\17.2.1\unpacked-play-services-tasks-17.2.1\jars\classes    (2.43s)
Dex: Accessibility    (2.10s)
Dex: AHQuickAction    (2.61s)
Dex: Audio    (2.55s)
Dex: B4XEncryption    (2.37s)
Dex: BetterDialogs    (2.41s)
Dex: BitmapExtended    (2.44s)
Dex: BitmapPlus    (2.33s)
Dex: Camera    (2.52s)
Dex: ContentResolver    (2.45s)
Dex: Core    (3.43s)
Dex: DateUtils    (2.48s)
Dex: Dialogs    (3.07s)
Dex: DropboxHttpAPI    (2.96s)
Dex: Excel    (2.41s)
Dex: FTP_Auto    (2.58s)
Dex: GoogleMaps    (2.42s)
Dex: GoogleMapsExtras    (2.78s)
Dex: GPS    (2.36s)
Dex: id    (2.21s)
Dex: IME    (2.26s)
Dex: JavaObject    (2.58s)
Dex: JpegUtils    (2.50s)
Dex: JSON    (2.56s)
Dex: Licensing    (2.68s)
Dex: MaskedEditText    (2.57s)
Dex: MESShareLibrary    (2.23s)
Dex: Navigation    (2.86s)
Dex: Net    (3.20s)
Dex: OSLibrary    (2.51s)
Dex: PDFjetB4A    (2.99s)
Dex: PDFWriter    (2.64s)
Dex: Phone    (2.82s)
Dex: RandomAccessFile    (2.81s)
Dex: Reflection    (2.57s)
Dex: RuntimePermissions    (2.22s)
Dex: ScrollView2D    (2.75s)
Dex: Serial    (2.45s)
Dex: SQL    (2.44s)
Dex: StdActionBarHelper    (2.51s)
Dex: StringFunctions    (2.82s)
Dex: StringUtils    (2.97s)
Dex: TabHostExtras    (2.31s)
Dex: ViewSetting    (2.43s)
Dex: ViewsEx    (2.67s)
Dex: WebViewExtras    (2.51s)
Dex: WhatsApp    (2.28s)
Dex: XMLBuilder    (2.45s)
Dex: XmlSax    (2.09s)
Dex: TouchImageView    (2.34s)
Dex: okhttp    (2.24s)
Dex: okhttputils2    (2.27s)
Dex: okhttp-3.12.12    (3.96s)
Dex: okio-1.17.5    (3.09s)
Dex: jxl    (4.36s)
Dex: network    (2.22s)
Dex: PDFjet    (4.40s)
Dex: okhttp-4.9.0    (3.94s)
Dex: okio-2.8.0    (3.39s)
Dex: okhttp-urlconnection-4.9.3    (1.93s)
Dex: kotlin-stdlib-1.6.10    (6.60s)
Dex: C:\Android\tools\..\extras\b4a_remote\androidx\annotation\annotation\1.2.0\annotation-1.2.0    (2.33s)
Dex: C:\Android\tools\..\extras\b4a_remote\androidx\lifecycle\lifecycle-common\2.3.1\lifecycle-common-2.3.1    (2.49s)
Dex: C:\Android\tools\..\extras\b4a_remote\androidx\arch\core\core-common\2.1.0\core-common-2.1.0    (2.38s)
Dex: C:\Android\tools\..\extras\b4a_remote\androidx\collection\collection\1.1.0\collection-1.1.0    (2.84s)
Dex code    (15.30s)
Dex merge    Error
Error in C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-3.12.12-63775100172000\dex_v1\okhttp-3.12.12.zip:classes.dex:
Type okhttp3.Address is defined multiple times: C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-3.12.12-63775100172000\dex_v1\okhttp-3.12.12.zip:classes.dex, C:\Android\tools\..\extras\b4a_local\unpacked-okhttp-4.9.0-63783476150000\dex_v1\okhttp-4.9.0.zip:classes.dex
Compilation failed
 

Sagenut

Expert
Licensed User
Longtime User
From which version of B4A did you upgraded?
I think that you have an old Android SDK.
Simply download and install the latest one by taking the needed files from here:
B4A Installation
Follow all the steps carefully.
 
Upvote 0
Top