{"id":132,"date":"2019-07-17T18:54:19","date_gmt":"2019-07-17T15:54:19","guid":{"rendered":"https:\/\/amorev.ru\/?p=132"},"modified":"2019-10-04T13:12:34","modified_gmt":"2019-10-04T10:12:34","slug":"androidx-and-launcheractivity-not-found","status":"publish","type":"post","link":"https:\/\/amorev.ru\/en\/androidx-and-launcheractivity-not-found\/","title":{"rendered":"PWA, AndroidX \u0438 LauncherActivity not found"},"content":{"rendered":"\n<p>Progressive web\napplications have great potential in the world of mobile development. This\ntechnology is still developing, but I, as a WEB developer, believe that the\nfuture of this technology is very powerful \ud83d\ude42<\/p>\n\n\n\n<p>Recently I wanted\nto pack one of the PWA applications into a native android application, but I faced\nwith an error \"android.support.customtabs.trusted.LauncherActivity not\nfound\". I spent a lot of time looking for the cause of this problem -\nGoogle did not help me. But in the end, my perseverance had helped \ud83d\ude42<\/p>\n\n\n\n<p>AndroidX is a kind\nof library which purpose is in improving life for Android developers. It\ncontains libraries that start with support. I'm pretty bad at Android\ndevelopment (for now) and I couldn\u2019t immediately understand that this is the\ncase. I just did everything according to the instructions from the Habr - <a href=\"https:\/\/habr.com\/en\/post\/439238\/\">https:\/\/habr.com\/en\/post\/439238\/<\/a><\/p>\n\n\n\n<p>But as we know, the\ndevil is in the details \u2013 there was an option in the instructions from Habr to\ncreate a project without AndroidX, but I didn\u2019t have this option in the last\nversion \ud83d\ude42<\/p>\n\n\n\n<p>There is simply no\nway to uncheck the box \"Use AndroidX artifacts\". It turned out that\nyou can solve this problem after you have created the project just by fixing\ngradle.properties.<\/p>\n\n\n\n<p>Both android.useAndroidX\nand android.enableJetifier had to be set to false. After that, click on sync\nproject so that the IDE downloads all the dependencies and you can continue to\nwork \ud83d\ude42<\/p>\n\n\n\n<p>But I didn\u2019t\nachieve my goal - on my samsung s8 the browser strip was still there, so PWA,\nso far, is not for phones like mine and, therefore, not for the general public\n- there can be many such phones where PWA does not work correctly.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Progressive web applications have great potential in the world of mobile development. This technology is still developing, but I, as a WEB developer, believe that &hellip; <\/p>\n","protected":false},"author":1,"featured_media":142,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[166,49],"tags":[17,19,20,163,18],"class_list":["post-132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-main","category-razrabotka","tag-android","tag-android-studio","tag-androidx","tag-java","tag-pwa"],"_links":{"self":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/comments?post=132"}],"version-history":[{"count":0,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/posts\/132\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media\/142"}],"wp:attachment":[{"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/media?parent=132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/categories?post=132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/amorev.ru\/en\/wp-json\/wp\/v2\/tags?post=132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}