When adding <application android:testonly="True"> to my AndroidManifest.template, I get : E2312 ..\Android\Debug\Project1\AndroidManifest.xml:34: error: No resource identifier found for attribute 'testonly' in package 'android'. It's the same for release.
Is there a way to get an apk with this attribute with delphi ?
You cannot place it in Manifest.
Instead you must add android.injected.testOnly=false in your "gradle.properties" file
Related
Manifest merger failed: Attribute
provider#com.google.firebase.provider.FirebaseInitProvider#authorities value=(fintnessathome.cardioexcercise.firebaseinitprovider) from AndroidManifest.xml:766:13-86
is also present at [com.google.firebase:firebase-common:19.3.0] AndroidManifest.xml:28:13-72 value=(com.fintnessathome.fintnessathomeapp.firebaseinitprovider).
Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:764:9-768:39 to override.
I am facing this issue, I got the template from my friend and i want to make some changes in the android app, it's showing this error when I execute this program.
Try adding following Code in your manifest.xml
tools:replace="android:allowBackup"
Try adding the following in the gradle.properties file
android.useAndroidX=true
android.enableJetifier=true
android.enableUnitTestBinaryResources=false
Also, add the following code into your manifest file inside the application tag
tools:replace="android:supportsRtl,android:allowBackup,icon,label"
I have an android app and i've defined android:supportsRtl="false" (Without it - it was rtl and I don't want it).
Now i'm using this library:
compile 'com.iceteck.silicompressorr:silicompressor:2.0'
And the my code doesn't compile:
Error:Execution failed for task ':app:processDebugManifest'.
Manifest merger failed : Attribute application#supportsRtl value=(false) from AndroidManifest.xml:40:9-36
is also present at [com.iceteck.silicompressorr:silicompressor:2.0] AndroidManifest.xml:17:9-35 value=(true).
Suggestion: add 'tools:replace="android:supportsRtl"' to element at AndroidManifest.xml:36:5-189:19 to override.
I'm not completely understanding how should I implement the suggestion, or if there is another way to solve it.
I've tried tools:replace="android:supportsRtl=false" but it still doesn't compile
Thanks!
Ideally, you would use true for supportsRtl. And, ideally, the library would not be setting any value for supportsRtl.
However, the instructions in the error message should be straightforward:
Suggestion: add 'tools:replace="android:supportsRtl"' to element at AndroidManifest.xml:36:5-189:19 to override
Since we don't have your manifest, we have to guess as to what is on those lines. Most likely, you should add tools:replace="android:supportsRtl" to your <application> element, in addition to your android:supportsRtl="false" that you already have there.
I am integrating payumoney in my android application. I have read docs and see video for integration i.e < https://www.youtube.com/watch?v=gnQ0IF3XniM&t=740s >. Problem is when i am trying to import module dependency it gives me error that manifest merger failed with multiple error.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:22:9-38 Error:
Attribute application#icon value=(#drawable/logo) from AndroidManifest.xml:22:9-38
is also present at [:sdkui] AndroidManifest.xml:20:9-43 value=(#mipmap/ic_launcher).
Suggestion: add 'tools:replace="android:icon"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
C:\Users\amit\Desktop\New folder (3)\SalwarTales-master\app\src\main\AndroidManifest.xml:26:9-43 Error:
Attribute application#theme value=(#style/NoActionBar) from AndroidManifest.xml:26:9-43
is also present at [:sdkui] AndroidManifest.xml:22:9-40 value=(#style/AppTheme).
Suggestion: add 'tools:replace="android:theme"' to <application> element at AndroidManifest.xml:20:5-72:19 to override.
finally did it. very silly mistake. I was using Different launcher icon and app theme in both modules.
Is there now a way to use the facebook plugin unity at the same time as other plugins (prime31 for example)?
I use multiple plugin other than facebook (push, in app purchase), and when I import the facebook plugin, it is impossible to compile because of resource sharing. I found a lot of topics on this issue, but I have not been able to solve my problem.
Here is an example of compile-time errors:
stderr[
res\values\attrs.xml:20: error: Attribute "show_pictures" has already been defined
res\values\attrs.xml:21: error: Attribute "extra_fields" has already been defined
res\values\attrs.xml:22: error: Attribute "show_title_bar" has already been defined
res\values\attrs.xml:23: error: Attribute "title_text" has already been defined
res\values\attrs.xml:24: error: Attribute "done_button_text" has already been defined
res\values\attrs.xml:25: error: Attribute "title_bar_background" has already been defined
res\values\attrs.xml:26: error: Attribute "done_button_background" has already been defined
res\values\attrs.xml:29: error: Attribute "multi_select" has already been defined
res\values\attrs.xml:32: error: Attribute "radius_in_meters" has already been defined
res\values\attrs.xml:33: error: Attribute "results_limit" has already been defined
res\values\attrs.xml:34: error: Attribute "search_text" has already been defined
res\values\attrs.xml:35: error: Attribute "show_search_box" has already been defined
res\values\attrs.xml:38: error: Attribute "confirm_logout" has already been defined
res\values\attrs.xml:39: error: Attribute "fetch_user_info" has already been defined
res\values\attrs.xml:40: error: Attribute "login_text" has already been defined
res\values\attrs.xml:41: error: Attribute "logout_text" has already been defined
res\values\attrs.xml:44: error: Attribute "preset_size" has already been defined
res\values\attrs.xml:50: error: Attribute "is_cropped" has already been defined
]
If anyone has a solution let me know!
thank you,
This happened to me when I had multiple attrs.xml files in my plugins folder, probably because of using the Facebook Unity plugin along with the Prime31 unity plugin. I deleted one of the attrs.xml files (which I found using the Unity search function) and then this error went away.
You can use multiple plugins from prime31 at the same time, just make sure that you have only one copy of P31RestKit.dll.
Updated to the latest Android Build tools (0.4.2) and ran into the following when attempting to assemble:
/AndroidApp/App/build/res/all/flavor/debug/layout/fragment.xml:84:
error: No resource identifier found for attribute 'gapWidth' in package 'com.viewpagerindicator'
RelativeLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator"
android:layout_width="match_parent"
android:layout_height="match_parent" >
Since flavors may use a different packagename, instead of specifying the package name in the custom namespace, use: 'http://schemas.android.com/apk/res-auto'.
Update your custom XML link paths to use build instead of apk.
Was, in the fragment.xml file
xmlns:app="http://schemas.android.com/apk/res/com.viewpagerindicator"
Now, to this:
xmlns:app="http://schemas.android.com/build/res/com.viewpagerindicator"