Manifest merger failed while creating Maps Activity - android-studio

I got stucked in this rude error, please suggest some solution to it.
When I creates new_project -> Map_Activity for the first time,
I got this error:
Manifest merger failed : Attribute application#appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
is also present at [androidx.core:core:1.0.0] AndroidManifest.xml:22:18-86 value=(androidx.core.app.CoreComponentFactory).
Suggestion: add 'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:11:5-39:19 to override.
But when I pasted
'tools:replace="android:appComponentFactory"' to element at AndroidManifest.xml:11:5-39:19 to override
Then, I got new error:
Manifest merger failed with multiple errors, see logs
I'd looked for some of solutions on stackoverflow and github, but my error is not resolving.
All files are default, I had'nt made any change even then the error is coming from default :(
Your solution would be a great help for me. Please give your ideas in order to resolve this issue with newProject with MapActivity. Thanks in advance.

To solve it, just add the following line in your gradle.properties file:
android.enableJetifier=true
android.useAndroidX=true
this should be in your build.gradle
implementation 'com.android.support:appcompat-v7:28.0.0-alpha1'
Hope this will help. I resolved the issue by doing this

Related

I got "Delete `CD`" message from eslint error

I'm writing my first lines on Nestjs but when I create my first .ts file I got this error, I don't understand what this means.
I found the solution in other question the thing is that you have to change the follow configuration on VSC

The hybris extension is skipped, during Initialization. How to debug and resolve it?

Initially all the Extensions were imported. But after some modifications (and tried to initialize), i am facing below issue.
Question: is how to debug it and fix the issue?
Edited:
As per suggestion of #Mafick.
i tried to update "sapbusinessagreementaddon" extension through hac. i found the cms-responsive-content_zh_CN.impex file( which was throwing the exception).
please find the code below:
cms-responsive-content_zh_CN.impex
$contentCatalog=powertoolsContentCatalog
$contentCV=catalogVersion(CatalogVersion.catalog(Catalog.id[default=$contentCatalog]),CatalogVersion.version[default=Staged])[default=$contentCatalog:Staged]
$jarResourceCms=jar:com.sap.hybris.sapbusinessagreementaddon.constants.SapbusinessagreementaddonConstants&/sapbusinessagreementaddon/import/cockpit/cmscockpit
$contentCatalogName=Powertools Content Catalog
$addonExtensionName=sapbusinessagreementaddon
$lang=zh_CN
# update linkname
UPDATE CMSLinkComponent;$contentCV[unique=true];uid[unique=true];linkName[lang=$lang]
;;BusinessAgreementsLink;"商业协议"
The error thrown in the hac is: as below
UPDATE CMSLinkComponent;catalogVersion(CatalogVersion.catalog(Catalog.id[default=powertoolsContentCatalog]),CatalogVersion.version[default=Staged])[default=powertoolsContentCatalog:Staged][unique=true];uid[unique=true];linkName[lang=zh_CN]
,8796103869500,,,column 3: cannot resolve value '商业协议' for attribute 'linkName' because: cannot find language for value 'zh_CN';;BusinessAgreementsLink;商业协议
Conclusion:
As per the issue it cannot resolve "zh_CN" (linkName[lang]). So how can i resolve this issue? Where should i specify lang(zh_CN) to find the language by hybris?
Such that it execute's impex successfully.
As you can see this happens while you are importing 'project data'.
So go into your hybris admin console (/hac) -> Update and deselect all checkboxes and only activate sapbusinessagreementaddon below in project data. Than have a look on the console.
UPDATE
Have a look in to this impex file
/projects/hybris/custom/xxxinitialdata/resources/xxxinitialdata/import/coredata/common/essential-data.impex
There you can define your Languages. Add here your missing language
You probably have errors in one or more sample data impexes in the sapbusinessagreementaddon extension, try importing them manually one by one (from hac), and see which one crashes
Update :
Seems zh_CN language is missing from your database, try creating it using the following :
INSERT_UPDATE Language;isocode[unique=true];active[default=true]
;zh_CN;
Adapt this code to correspond more to your needs

Android Studio 2.3.2 Gradle Error

I am new to Android Studio, and everything was going fine until I received a nonsense error:
"Error:Execution failed for task ':app:processDebugResources'. > Duplicate symbol in table with resource type 'id' and symbol name 'title_conctact'"
I have no idea what it means and I have tried to fix it for two days. I tried uninstalling Android Studio which deleted all my progress, but still, the error remained. Please help, this is annoying. By the way, I am using the latest version 2.3.2.
hi after finding so much on web i don't get any solution so i tried myself to debug it and i got success to fix this issue you need to find the name in files in your case the name is title_conctact so you will get duplicate id's, now you need to rename and make them unique
that's it your problem will be fixed
I had the same issue. The issue I had was due to the keys declared differently in one of my module's resource file and my app's resource file.
In the module's strings.xml file, if you declare the key as 'title.conctact' and in the app's strings.xml file if you declare it as 'title_conctact', then you will face this error.
Changing it to a single format resolved my issue.
Double-clicking SHIFT will open a window. Put the title_conctact inside the search and you will find the .xml file that contains the duplicate id

Android 3.0 and higher version issue

Thankyou for taking the time to look at my problem. I'm working on an android application and I keep getting an error in eclipse every time I use the parent="android.Theme.Holo.Light". I have my folder created using values-v11 indicating when to use the correct theme for the correct version but I just get the error:
No resource found that matches the given name 'android.Theme.Holo.Light' in my styles.xml file.
Any idea why this is happening? Thanks in advance.
Try this:
parent="#android:style/Theme.Holo.Light"

iPhone SQLite encryption with SQLCipher facing errors

I am trying to learn about the encryption of DB at application level using this tutorial. But I am getting an error that says
sqlcipher/sqlite3.c:11033:25: error: openssl/evp.h: No such file or directory
sqlcipher/sqlite3.c:11034:26: error: openssl/rand.h: No such file or directory
sqlite3.c:11035:26: error: openssl/hmac.h: No such file or directory
and due these there are around 93 more errors in the build process. I have strictly followed the tutorial but I am not able to get rid of those errors.
I have added the path of the source code as instructed in the tutorials but still the problem persists. The screenshot could be seen here
I had the same problem, in my case it was caused by a space in my OPENSSL_SRC path. Enclosing the value of OPENSSL_SRC in double-quotes fixed the problem.
The error messages you are seeing indicate that the compiler can't find the OpenSSL headers included in the SQLCipher code. The most likely problem is that you didn't add the OpenSSL headers to your include path when setting up your project. Perhaps you missed this step in the tutorial: "Look for the “Header Search Paths” setting and add references to $(SQLCIPHER_SRC) and $(OPENSSL_SRC). Check “recursive” on both."
As an aside, the information on that MO article is dated. In the future you can refer to this updated tutorial on the SQLCipher website: http://sqlcipher.net/documentation/ios
After long time i'm not sure whether you fixed this issue or not anyway to fix this do as follows:
In OPENSSL_SRC change destination from "/openssl-1.0.0d" to "/openssl-1.0.0d/include".
thatz it..it has to work.

Resources