Caused by: com.freshdesk.mobihelp.exception.MobihelpComponentNotFoundException: Component of Mobihelp SDK not found in your app's AndroidManifest.xml + (com.freshdesk.mobihelp.activity.FeedbackActivity missing!)

Any help with this error will be appreciated.



10-31 23:25:53.374: E/AndroidRuntime(15959): Caused by: com.freshdesk.mobihelp.exception.MobihelpComponentNotFoundException: Component of Mobihelp SDK not found in your app's AndroidManifest.xml + (com.freshdesk.mobihelp.activity.FeedbackActivity missing!)

10-31 23:25:53.374: E/AndroidRuntime(15959): at com.freshdesk.mobihelp.e.j.i(Unknown Source)

10-31 23:25:53.374: E/AndroidRuntime(15959): at com.freshdesk.mobihelp.Mobihelp.init(Unknown Source)

10-31 23:25:53.374: E/AndroidRuntime(15959): at com.squad.run.activities.SplashActivity.initMobiHelp(SplashActivity.java:54)

10-31 23:25:53.374: E/AndroidRuntime(15959): at com.squad.run.activities.SplashActivity.onCreate(SplashActivity.java:29)

10-31 23:25:53.374: E/AndroidRuntime(15959): at android.app.Activity.performCreate(Activity.java:5248)

10-31 23:25:53.374: E/AndroidRuntime(15959): at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1110)

10-31 23:25:53.374: E/AndroidRuntime(15959): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2162)



The Error you reported usually occurs when you have not enabled manifest merger . Please include a manifestmerger.enabled=true in your App's "project.properties" file and attempt a clean build . This should resolve your issue. Please refer the integration guide for more details.


If you are using proguard with your project. Please make sure the "proguard-project.txt" for Mobihelp file is included in your IDE. More details on using proguard is listed here 

I'm getting the same error, I'm using Xamarin with compiled dll from your android SDK.
This is the log I get:

Unhandled Exception:

Java.Lang.RuntimeException: Component of Mobihelp SDK not found in your app's AndroidManifest.xml + (Services missing!)

Never mind, I managed to solve it..
The issue is that I had to manually add activities to the manifest file.

This is the final manifest:

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android" package="FreshDeskAndroidSample.FreshDeskAndroidSample" android:versionCode="1" android:versionName="1.0">

<uses-sdk android:minSdkVersion="21" android:targetSdkVersion="21" />


<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_LOGS" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />


<application android:label="FreshDeskAndroidSample" android:icon="@drawable/Icon">

<activity
android:name="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:configChanges="orientation|screenSize"
android:theme="@style/Theme.Mobihelp"
android:windowSoftInputMode="adjustPan" >
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.FeedbackActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:theme="@style/Theme.Mobihelp"
android:windowSoftInputMode="adjustResize|stateVisible" >
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.TicketListActivity"
android:parentActivityName="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:theme="@style/Theme.Mobihelp" >

<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.SolutionArticleActivity"
android:parentActivityName="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:theme="@style/Theme.Mobihelp"
android:configChanges="orientation|screenSize|keyboard|keyboardHidden" >

<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.ConversationActivity"
android:parentActivityName="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:theme="@style/Theme.Mobihelp"
android:windowSoftInputMode="adjustResize|stateHidden" >

<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>
<activity
android:name="com.freshdesk.mobihelp.activity.AttachmentHandlerActivity"
android:configChanges="keyboardHidden|orientation|screenSize"
android:parentActivityName="com.freshdesk.mobihelp.activity.SolutionArticleListActivity"
android:theme="@style/Theme.Mobihelp" >

<!-- Parent activity meta-data to support 4.0 and lower -->
<meta-data
android:name="android.support.PARENT_ACTIVITY"
android:value="com.freshdesk.mobihelp.activity.SolutionArticleListActivity" />
</activity>

<service android:name="com.freshdesk.mobihelp.service.MobihelpService" />

<receiver android:name="com.freshdesk.mobihelp.receiver.ConnectivityReceiver" >
<intent-filter>
<action android:name="android.net.conn.CONNECTIVITY_CHANGE" />
</intent-filter>
</receiver>

</application>
</manifest>

A full working solution can be found here : https://github.com/IdoTene/Xamarin-Freshdesk-Android

 

Hi Rishi,


I am unable to pass the simple method Mobihelp.init (p1,p2); Though i have import all the relevant lib and services to my android manifest.Kindly help me resolve this problem.

Component of Mobihelp SDK not found in your app's AndroidManifest.xml + (com.freshdesk.mobihelp.activity.FeedbackActivity missing!)


Regards

Muhammad Farooq

Login or Signup to post a comment