Closed ravikarthi closed 4 years ago
Hi @ravikarthi, did you follow the guide to install chat21-android-sdk? Please, give me more info to help you resolving your issue
Thank you @gab-95.
I have solved this issue. but I have another issue with an attachment. its shows can not complete upload toast and throw the following exception
E/org.chat21.android.storage.StorageHandler: addOnFailureListener.onFailure: An unknown error occurred, please check the HTTP result code and inner exception for server response.
E/org.chat21.android.ui.messages.activities.MessageListActivity: uploadFile.onUploadFailed: An unknown error occurred, please check the HTTP result code and inner exception for server response.
Have you already enabled storage permission for your app on your device ?
Yes I have enabled
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/>
I have given permission to read external storage as I mentioned in the previous comment, then why it throws the exception below
E/StorageException: /storage/emulated/0/1:748979346979:android:65aa18cd22b9064e1e9b96/images/sent/1573283978749.jpg (No such file or directory)
Is there any other permission to enable?
try add this permission
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
Thank you @gab-95 for your support. It works. I have added the above permission in the manifest and as well as I have check self permission in the code itself.
if (checkSelfPermission(android.Manifest.permission.WRITE_EXTERNAL_STORAGE) == PackageManager.PERMISSION_GRANTED) {
return ;
}
else
{
requestPermissions( new String[]{Manifest.permission.WRITE_EXTERNAL_STORAGE}, REQUEST_CODE);
}
Exception throws from /jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29
guide me to fix the issue
I am also getting same issue. Can you please explain me how you did resolve this issue? Thanks in advance.
Hi @ravikarthi, did you follow the guide to install chat21-android-sdk? Please, give me more info to help you resolving your issue
Task :app:processDebugResources FAILED AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":28}}],"original":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Title) not found.\n ","tool":"AAPT"} AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":38}}],"original":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:39: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Time (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Time) not found.\n ","tool":"AAPT"} AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":49}}],"original":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:50: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Info (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Info) not found.\n ","tool":"AAPT"}
Pls help fix this issue..
I think you must use the style for this. Maybe you are missing the Style element in this. Thanks
On Thu, Jul 2, 2020 at 3:11 PM WillyAdrianus notifications@github.com wrote:
Hi @ravikarthi https://github.com/ravikarthi, did you follow the guide to install chat21-android-sdk? Please, give me more info to help you resolving your issue
Task :app:processDebugResources FAILED AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":28}}],"original":"/Users/rensekiangkasa/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Title) not found.\n ","tool":"AAPT"} AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":38}}],"original":"/Users/rensekiangkasa/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:39: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Time (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Time) not found.\n ","tool":"AAPT"} AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{"file":"/Users/rensekiangkasa/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml","position":{"startLine":49}}],"original":"/Users/a/.gradle/caches/transforms-2/files-2.1/c882fc70aaf140f2e791d1e42a68a62e/jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:50: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Info (aka com.example.chat21:style/TextAppearance.AppCompat.Notification.Info) not found.\n ","tool":"AAPT"}
Pls help fix this issue..
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chat21/chat21-android-sdk/issues/37#issuecomment-652903973, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJNIAR7X4OMKCUZSZWTXPDRZRI5VANCNFSM4JJQXAGA .
-- Vikas Jain Mobile Application Developer 404-408, Akshar Stadia, Behind Gurudwara, Bodakdev, Ahemdabad - 380054, Gujarat, India Email: vikas.jain@plutustec.com Skype: vikas.jain-plutus www.plutustec.com
Android resource linking failed C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title not found.
C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:39: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Time not found.
C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:50: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Info not found.
I am stuck! Anyone resolved above issue pls provide support.
You must create a new style with the same name. So your code will be free from errors.
On Thu, Jul 2, 2020 at 4:30 PM HARSH PRASAD notifications@github.com wrote:
Android resource linking failed C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:29: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Title not found.
C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:39: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Time not found.
C:\Users\lenevo.gradle\caches\transforms-2\files-2.1\e72831bcfb4d3941f960da6f3132f312\jetified-chat21-1.0.10\res\layout\layout_custom_notification.xml:50: AAPT: error: resource style/TextAppearance.AppCompat.Notification.Info http://TextAppearance.AppCompat.Notification.Info not found.
I am stuck! Anyone resolved above issue pls provide support.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/chat21/chat21-android-sdk/issues/37#issuecomment-652938898, or unsubscribe https://github.com/notifications/unsubscribe-auth/AEJNIATFS33JV3NZM56H5D3RZRSD5ANCNFSM4JJQXAGA .
-- Vikas Jain Mobile Application Developer 404-408, Akshar Stadia, Behind Gurudwara, Bodakdev, Ahemdabad - 380054, Gujarat, India Email: vikas.jain@plutustec.com Skype: vikas.jain-plutus www.plutustec.com
Thank you @gab-95.
I have solved this issue. but I have another issue with an attachment. its shows can not complete upload toast and throw the following exception
E/org.chat21.android.storage.StorageHandler: addOnFailureListener.onFailure: An unknown error occurred, please check the HTTP result code and inner exception for server response.
E/org.chat21.android.ui.messages.activities.MessageListActivity: uploadFile.onUploadFailed: An unknown error occurred, please check the HTTP result code and inner exception for server response.
How did you resolve the first issue?
Can you open another issue describing you problem?
Can you open another issue describing you problem?
Thank you, I just did.
Exception throws from /jetified-chat21-1.0.15/res/layout/layout_custom_notification.xml:29
guide me to fix the issue