{"title":"Migrate to Android 1.21.2 and later","category":"default","creationDate":1776961627,"content":"<p>From 1.21.2 version \u00a01.21.2, the\u00a0Adyen Android Library is going to be distributed as an Android Archive (AAR) file instead of Java Archive (JAR) file. This will allow easier integration as you will only have to import an AAR module into your project and add a dependency to it.\u00a0<\/p>\n<h2 id=\"steps\">Steps<\/h2>\n<p>To use the AAR file in Android Studio:<\/p>\n<ol>\n<li>\n<p>Remove the old Adyen Android Library module (<span translate=\"no\"><strong>AndroidLibraryDist<\/strong><\/span>)\u00a0dependency from your app module.<\/p>\n<ol>\n<li>Go to <span translate=\"no\"><strong>File<\/strong><\/span> &gt; <span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/li>\n<li>Select the app module in the <span translate=\"no\"><strong>Modules<\/strong><\/span> list on the left.<\/li>\n<li>Select the <span translate=\"no\"><strong>Dependencies<\/strong><\/span> tab.\u00a0<\/li>\n<li>Select the\u00a0<span translate=\"no\"><strong>(AndroidLibraryDist<\/strong><\/span>) module dependency.<\/li>\n<li>Remove it from your app module by clicking the <strong>-<\/strong>\u00a0button on the lower left.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Remove the old Adyen Android Library module\u00a0(<span translate=\"no\"><strong>AndroidLibraryDist<\/strong><\/span>) from your project.<\/p>\n<ol>\n<li>Go to\u00a0<span translate=\"no\"><strong>File<\/strong><\/span>\u00a0&gt;\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/li>\n<li>Select the old Adyen Android Library module\u00a0(<span translate=\"no\"><strong>AndroidLibraryDist<\/strong><\/span>).<\/li>\n<li>Remove the module from the project by pressing the <strong>-<\/strong> button on the top left corner.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Delete the Adyen Android Library module from the file system.<\/p>\n<\/li>\n<li>\n<p>Import the new Adyen Android Library module.<\/p>\n<ol>\n<li>Go to\u00a0<span translate=\"no\"><strong>File<\/strong><\/span>\u00a0&gt;\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/li>\n<li>Press the <strong>+<\/strong> button on the upper-left corner of the <span translate=\"no\"><strong>Project Structure<\/strong><\/span> window\u00a0to\u00a0add a new module.\u00a0<\/li>\n<li>\n<p>In the <span translate=\"no\"><strong>Create new module<\/strong><\/span>\u00a0screen:\u00a0<\/p>\n<ol>\n<li>Select <span translate=\"no\"><strong>Import .JAR\/.AAR Package<\/strong><\/span> and click <span translate=\"no\"><strong>Next<\/strong><\/span>.<\/li>\n<li>In the file selector, browse to the <span translate=\"no\"><strong>adyen-android-library-{version}.aar<\/strong><\/span> file.<\/li>\n<\/ol>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add a dependency in the app module\u00a0to the Adyen library module.<\/p>\n<ol>\n<li>Go to <span translate=\"no\"><strong>File<\/strong><\/span> &gt; <span translate=\"no\"><strong>Project structure<\/strong><\/span> in Android Studio.<\/li>\n<li>Select the app module in the <span translate=\"no\"><strong>Modules<\/strong><\/span> list on the left.<\/li>\n<li>Select the <span translate=\"no\"><strong>Dependencies<\/strong><\/span> tab.\u00a0<\/li>\n<li>Add dependency on the\u00a0<strong>+<\/strong>\u00a0button on the lower left corner.\u00a0<\/li>\n<li>Select <span translate=\"no\"><strong>3.Module dependency<\/strong><\/span> in the drop down menu.\u00a0<\/li>\n<li>Select the Adyen library module you have previously added in step 3.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Add dependency for\u00a0<span translate=\"no\"><strong>appcompat-v7.<\/strong><\/span><\/p>\n<ol>\n<li>Go to\u00a0<span translate=\"no\"><strong>File<\/strong><\/span>\u00a0&gt;\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/li>\n<li>Select the app module in the <span translate=\"no\"><strong>Modules<\/strong><\/span> list on the left.<\/li>\n<li>Select the <span translate=\"no\"><strong>Dependencies<\/strong><\/span> tab.\u00a0<\/li>\n<li>Click the <strong>+<\/strong> button on the lower left to add the dependency.<\/li>\n<li>Select <span translate=\"no\"><strong>1. Library dependency<\/strong><\/span> in the drop down menu.<\/li>\n<li>From the <span translate=\"no\"><strong>Choose Library Dependency<\/strong><\/span> screen choose the\u00a0<span translate=\"no\"><strong>com.android.support:appcompat-v7:{version}.<\/strong><\/span><\/li>\n<li>Click <span translate=\"no\"><strong>OK<\/strong><\/span>.<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>Sync project with gradle files.<\/p>\n<\/li>\n<\/ol>\n<p>You can now use the Adyen library in your Android application.<\/p>","url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/android-integration\/migrate-to-android-1212-and-above","articleFields":{"id":"36183453","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"01-05-2019 12:07"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/android-integration\/migrate-to-android-1212-and-above","title":"Migrate to Android 1.21.2 and later","content":"From 1.21.2 version \u00a01.21.2, the\u00a0Adyen Android Library is going to be distributed as an Android Archive (AAR) file instead of Java Archive (JAR) file. This will allow easier integration as you will only have to import an AAR module into your project and add a dependency to it.\u00a0\nSteps\nTo use the AAR file in Android Studio:\n\n\nRemove the old Adyen Android Library module (AndroidLibraryDist)\u00a0dependency from your app module.\n\nGo to File &gt; Project Structure\u00a0in Android Studio.\nSelect the app module in the Modules list on the left.\nSelect the Dependencies tab.\u00a0\nSelect the\u00a0(AndroidLibraryDist) module dependency.\nRemove it from your app module by clicking the -\u00a0button on the lower left.\n\n\n\nRemove the old Adyen Android Library module\u00a0(AndroidLibraryDist) from your project.\n\nGo to\u00a0File\u00a0&gt;\u00a0Project Structure\u00a0in Android Studio.\nSelect the old Adyen Android Library module\u00a0(AndroidLibraryDist).\nRemove the module from the project by pressing the - button on the top left corner.\n\n\n\nDelete the Adyen Android Library module from the file system.\n\n\nImport the new Adyen Android Library module.\n\nGo to\u00a0File\u00a0&gt;\u00a0Project Structure\u00a0in Android Studio.\nPress the + button on the upper-left corner of the Project Structure window\u00a0to\u00a0add a new module.\u00a0\n\nIn the Create new module\u00a0screen:\u00a0\n\nSelect Import .JAR\/.AAR Package and click Next.\nIn the file selector, browse to the adyen-android-library-{version}.aar file.\n\n\n\n\n\nAdd a dependency in the app module\u00a0to the Adyen library module.\n\nGo to File &gt; Project structure in Android Studio.\nSelect the app module in the Modules list on the left.\nSelect the Dependencies tab.\u00a0\nAdd dependency on the\u00a0+\u00a0button on the lower left corner.\u00a0\nSelect 3.Module dependency in the drop down menu.\u00a0\nSelect the Adyen library module you have previously added in step 3.\n\n\n\nAdd dependency for\u00a0appcompat-v7.\n\nGo to\u00a0File\u00a0&gt;\u00a0Project Structure\u00a0in Android Studio.\nSelect the app module in the Modules list on the left.\nSelect the Dependencies tab.\u00a0\nClick the + button on the lower left to add the dependency.\nSelect 1. Library dependency in the drop down menu.\nFrom the Choose Library Dependency screen choose the\u00a0com.android.support:appcompat-v7:{version}.\nClick OK.\n\n\n\nSync project with gradle files.\n\n\nYou can now use the Adyen library in your Android application.","type":"page","locale":"pt","boost":15,"hierarchy":{"lvl0":"Home","lvl1":"Terminais","lvl2":"Deprecation of classic libraries","lvl3":"Library integrations","lvl4":"Android integration","lvl5":"Migrate to Android 1.21.2 and later"},"hierarchy_url":{"lvl0":"https:\/\/docs.adyen.com\/pt","lvl1":"https:\/\/docs.adyen.com\/pt\/point-of-sale","lvl2":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation","lvl3":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations","lvl4":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/android-integration","lvl5":"\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/android-integration\/migrate-to-android-1212-and-above"},"levels":6,"category":"In-person payments","category_color":"green","tags":["Migrate","Android","1.21.2","later"]}}
