{"title":"Add the Adyen library module as a dependency","category":"default","creationDate":1776961627,"content":"<h2 id=\"steps\">Steps<\/h2>\n<ol>\n<li>\n<p>Import the new Adyen Android Library module.<\/p>\n<ol>\n<li>\n<p>Go to\u00a0<span translate=\"no\"><strong>File<\/strong><\/span>\u00a0&gt;\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/p>\n<\/li>\n<li>\n<p>Press the\u00a0<span translate=\"no\"><strong>+<\/strong><\/span>\u00a0button on the upper-left corner of the\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0window\u00a0to\u00a0add a new\u00a0module.<\/p>\n<\/li>\n<li>\n<p>In the\u00a0<span translate=\"no\"><strong>Create new module<\/strong><\/span>\u00a0screen:<\/p>\n<ol>\n<li>Select\u00a0<span translate=\"no\"><strong>Import .JAR\/.AAR\u00a0Package<\/strong><\/span>\u00a0and click\u00a0<span translate=\"no\"><strong>Next<\/strong><\/span>.<\/li>\n<li>In the file selector, browse to the unzipped\u00a0<span translate=\"no\"><strong>adyen-android-library-{version}.aar\u00a0<\/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>\n<p>Go to <span translate=\"no\"><strong>File<\/strong><\/span> &gt; <span translate=\"no\"><strong>Project structure<\/strong><\/span> in Android Studio.<\/p>\n<\/li>\n<li>\n<p>Select the app module in the\u00a0<span translate=\"no\"><strong>Modules<\/strong><\/span>\u00a0list on the left.<\/p>\n<\/li>\n<li>\n<p>Select the\u00a0<span translate=\"no\"><strong>Dependencies<\/strong><\/span>\u00a0tab.\u00a0<\/p>\n<\/li>\n<li>\n<p>Add dependency on the\u00a0<span translate=\"no\"><strong>+<\/strong><\/span>\u00a0button on the lower left corner.\u00a0<\/p>\n<\/li>\n<li>\n<p>Select\u00a0<span translate=\"no\"><strong>3.Module dependency<\/strong><\/span>\u00a0in the drop down menu.\u00a0<\/p>\n<\/li>\n<li>\n<p>Select the Adyen library module you have previously added in step 3.<\/p>\n<\/li>\n<\/ol>\n<\/li>\n<li>\n<p>\u00a0Add dependency for\u00a0<span translate=\"no\"><strong>appcompat-v7.<\/strong><\/span><\/p>\n<ol>\n<li>\n<p>Go to\u00a0<span translate=\"no\"><strong>File<\/strong><\/span>\u00a0&gt;\u00a0<span translate=\"no\"><strong>Project Structure<\/strong><\/span>\u00a0in Android Studio.<\/p>\n<\/li>\n<li>\n<p>Select the app module in the\u00a0<span translate=\"no\"><strong>Modules<\/strong><\/span>\u00a0list on the left.<\/p>\n<\/li>\n<li>\n<p>Select the\u00a0<span translate=\"no\"><strong>Dependencies<\/strong><\/span>\u00a0tab.\u00a0<\/p>\n<\/li>\n<li>\n<p>Click the\u00a0<span translate=\"no\"><strong>+<\/strong><\/span>\u00a0button on the lower left to add the dependency.<\/p>\n<\/li>\n<li>\n<p>Select<span translate=\"no\"><strong>\u00a01. Library dependency<\/strong><\/span>\u00a0in the drop down menu.<\/p>\n<\/li>\n<li>\n<p>From the\u00a0<span translate=\"no\"><strong>Choose Library Dependency<\/strong><\/span>\u00a0screen choose the\u00a0<span translate=\"no\"><strong>com.android.support:appcompat-v7:{version}.<\/strong><\/span><\/p>\n<\/li>\n<li>\n<p>Click\u00a0<span translate=\"no\"><strong>OK<\/strong><\/span>.<\/p>\n<\/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\/add-the-adyen-library-module-as-a-dependency","articleFields":{"id":"36186535","type":"page","_expandable":{"operations":""},"status":"current","last_edit_on":"01-05-2019 03:03"},"algolia":{"url":"https:\/\/docs.adyen.com\/pt\/point-of-sale\/classic-library-deprecation\/classic-library-integrations\/android-integration\/add-the-adyen-library-module-as-a-dependency","title":"Add the Adyen library module as a dependency","content":"Steps\n\n\nImport the new Adyen Android Library module.\n\n\nGo to\u00a0File\u00a0&gt;\u00a0Project Structure\u00a0in Android Studio.\n\n\nPress the\u00a0+\u00a0button on the upper-left corner of the\u00a0Project Structure\u00a0window\u00a0to\u00a0add a new\u00a0module.\n\n\nIn the\u00a0Create new module\u00a0screen:\n\nSelect\u00a0Import .JAR\/.AAR\u00a0Package\u00a0and click\u00a0Next.\nIn the file selector, browse to the unzipped\u00a0adyen-android-library-{version}.aar\u00a0file.\n\n\n\n\n\nAdd a dependency in the app module\u00a0to the Adyen library module.\n\n\nGo to File &gt; Project structure in Android Studio.\n\n\nSelect the app module in the\u00a0Modules\u00a0list on the left.\n\n\nSelect the\u00a0Dependencies\u00a0tab.\u00a0\n\n\nAdd dependency on the\u00a0+\u00a0button on the lower left corner.\u00a0\n\n\nSelect\u00a03.Module dependency\u00a0in the drop down menu.\u00a0\n\n\nSelect the Adyen library module you have previously added in step 3.\n\n\n\n\n\u00a0Add dependency for\u00a0appcompat-v7.\n\n\nGo to\u00a0File\u00a0&gt;\u00a0Project Structure\u00a0in Android Studio.\n\n\nSelect the app module in the\u00a0Modules\u00a0list on the left.\n\n\nSelect the\u00a0Dependencies\u00a0tab.\u00a0\n\n\nClick the\u00a0+\u00a0button on the lower left to add the dependency.\n\n\nSelect\u00a01. Library dependency\u00a0in the drop down menu.\n\n\nFrom the\u00a0Choose Library Dependency\u00a0screen choose the\u00a0com.android.support:appcompat-v7:{version}.\n\n\nClick\u00a0OK.\n\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":"Add the Adyen library module as a dependency"},"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\/add-the-adyen-library-module-as-a-dependency"},"levels":6,"category":"In-person payments","category_color":"green","tags":["Adyen","library","module","dependency"]}}
