Android fileprovider issue over 26+












0















Could you give an advice for this?

I really don't understand why this issue is not clear.

Here is my error message from android studio.



    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/7853 flg=0x1 (has extras) }} to activity {com.alibaba.food/com.alibaba.food.market.MarketRegActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
at com.alibaba.food.market.MarketRegActivity.createSaveCropFile(MarketRegActivity.java:447)
at com.alibaba.food.market.MarketRegActivity.onActivityResult(MarketRegActivity.java:337)
at android.app.Activity.dispatchActivityResult(Activity.java:7556)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4487)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534) 
at android.app.ActivityThread.-wrap20(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6940) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 


 



I usually works under 21 build version.
This is my first time to build over 26+.



My file provider.xml



<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path name="files" path="images/media/" /> <!-- Context.getFilesDir(). -->
<cache-path name="images" path="./images" /><!-- getCacheDir(). -->
<external-path name="name" path="path" /> <!-- Environment.getExternalStorageDirectory(). -->
<external-files-path name="storage/emulated" path="food/msg/" /> <!-- Context#getExternalFilesDir(String) Context.getExternalFilesDir(null). -->
<external-cache-path name="storage/emulated" path="." /> <!-- Context.getExternalCacheDir(). -->
</paths>


My uri java code :



File dir = new File(Environment.getExternalStorageDirectory().getPath() + "/food/msg/");
if (!dir.mkdirs()) {
dir.mkdir();
}
Uri uri;
String url = "tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg";

filename = url;
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { // API 24 +..
String strpa = getApplicationContext().getPackageName();
uri = FileProvider.getUriForFile(getApplicationContext(),
getApplicationContext().getPackageName() + ".fileprovider",
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
} else {
uri = Uri.fromFile(
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
}


My manifest :



<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.alibaba.food.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>









share|improve this question

























  • Are you trying to get the image file from a location?

    – Salman Khan
    Nov 22 '18 at 9:25











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08
















0















Could you give an advice for this?

I really don't understand why this issue is not clear.

Here is my error message from android studio.



    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/7853 flg=0x1 (has extras) }} to activity {com.alibaba.food/com.alibaba.food.market.MarketRegActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
at com.alibaba.food.market.MarketRegActivity.createSaveCropFile(MarketRegActivity.java:447)
at com.alibaba.food.market.MarketRegActivity.onActivityResult(MarketRegActivity.java:337)
at android.app.Activity.dispatchActivityResult(Activity.java:7556)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4487)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534) 
at android.app.ActivityThread.-wrap20(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6940) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 


 



I usually works under 21 build version.
This is my first time to build over 26+.



My file provider.xml



<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path name="files" path="images/media/" /> <!-- Context.getFilesDir(). -->
<cache-path name="images" path="./images" /><!-- getCacheDir(). -->
<external-path name="name" path="path" /> <!-- Environment.getExternalStorageDirectory(). -->
<external-files-path name="storage/emulated" path="food/msg/" /> <!-- Context#getExternalFilesDir(String) Context.getExternalFilesDir(null). -->
<external-cache-path name="storage/emulated" path="." /> <!-- Context.getExternalCacheDir(). -->
</paths>


My uri java code :



File dir = new File(Environment.getExternalStorageDirectory().getPath() + "/food/msg/");
if (!dir.mkdirs()) {
dir.mkdir();
}
Uri uri;
String url = "tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg";

filename = url;
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { // API 24 +..
String strpa = getApplicationContext().getPackageName();
uri = FileProvider.getUriForFile(getApplicationContext(),
getApplicationContext().getPackageName() + ".fileprovider",
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
} else {
uri = Uri.fromFile(
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
}


My manifest :



<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.alibaba.food.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>









share|improve this question

























  • Are you trying to get the image file from a location?

    – Salman Khan
    Nov 22 '18 at 9:25











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08














0












0








0








Could you give an advice for this?

I really don't understand why this issue is not clear.

Here is my error message from android studio.



    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/7853 flg=0x1 (has extras) }} to activity {com.alibaba.food/com.alibaba.food.market.MarketRegActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
at com.alibaba.food.market.MarketRegActivity.createSaveCropFile(MarketRegActivity.java:447)
at com.alibaba.food.market.MarketRegActivity.onActivityResult(MarketRegActivity.java:337)
at android.app.Activity.dispatchActivityResult(Activity.java:7556)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4487)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534) 
at android.app.ActivityThread.-wrap20(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6940) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 


 



I usually works under 21 build version.
This is my first time to build over 26+.



My file provider.xml



<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path name="files" path="images/media/" /> <!-- Context.getFilesDir(). -->
<cache-path name="images" path="./images" /><!-- getCacheDir(). -->
<external-path name="name" path="path" /> <!-- Environment.getExternalStorageDirectory(). -->
<external-files-path name="storage/emulated" path="food/msg/" /> <!-- Context#getExternalFilesDir(String) Context.getExternalFilesDir(null). -->
<external-cache-path name="storage/emulated" path="." /> <!-- Context.getExternalCacheDir(). -->
</paths>


My uri java code :



File dir = new File(Environment.getExternalStorageDirectory().getPath() + "/food/msg/");
if (!dir.mkdirs()) {
dir.mkdir();
}
Uri uri;
String url = "tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg";

filename = url;
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { // API 24 +..
String strpa = getApplicationContext().getPackageName();
uri = FileProvider.getUriForFile(getApplicationContext(),
getApplicationContext().getPackageName() + ".fileprovider",
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
} else {
uri = Uri.fromFile(
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
}


My manifest :



<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.alibaba.food.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>









share|improve this question
















Could you give an advice for this?

I really don't understand why this issue is not clear.

Here is my error message from android studio.



    java.lang.RuntimeException: Failure delivering result ResultInfo{who=null, request=1, result=-1, data=Intent { dat=content://media/external/images/media/7853 flg=0x1 (has extras) }} to activity {com.alibaba.food/com.alibaba.food.market.MarketRegActivity}: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.app.ActivityThread.deliverResults(ActivityThread.java:4491)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534)
at android.app.ActivityThread.-wrap20(Unknown Source:0)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752)
at android.os.Handler.dispatchMessage(Handler.java:105)
at android.os.Looper.loop(Looper.java:164)
at android.app.ActivityThread.main(ActivityThread.java:6940)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374)
Caused by: java.lang.IllegalArgumentException: Failed to find configured root that contains /storage/emulated/0/food/msg/tmp_1542878122647.jpg
at android.support.v4.content.FileProvider$SimplePathStrategy.getUriForFile(FileProvider.java:738)
at android.support.v4.content.FileProvider.getUriForFile(FileProvider.java:417)
at com.alibaba.food.market.MarketRegActivity.createSaveCropFile(MarketRegActivity.java:447)
at com.alibaba.food.market.MarketRegActivity.onActivityResult(MarketRegActivity.java:337)
at android.app.Activity.dispatchActivityResult(Activity.java:7556)
at android.app.ActivityThread.deliverResults(ActivityThread.java:4487)
at android.app.ActivityThread.handleSendResult(ActivityThread.java:4534) 
at android.app.ActivityThread.-wrap20(Unknown Source:0) 
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1752) 
at android.os.Handler.dispatchMessage(Handler.java:105) 
at android.os.Looper.loop(Looper.java:164) 
at android.app.ActivityThread.main(ActivityThread.java:6940) 
at java.lang.reflect.Method.invoke(Native Method) 
at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:327) 
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1374) 


 



I usually works under 21 build version.
This is my first time to build over 26+.



My file provider.xml



<?xml version="1.0" encoding="utf-8"?>
<paths>
<files-path name="files" path="images/media/" /> <!-- Context.getFilesDir(). -->
<cache-path name="images" path="./images" /><!-- getCacheDir(). -->
<external-path name="name" path="path" /> <!-- Environment.getExternalStorageDirectory(). -->
<external-files-path name="storage/emulated" path="food/msg/" /> <!-- Context#getExternalFilesDir(String) Context.getExternalFilesDir(null). -->
<external-cache-path name="storage/emulated" path="." /> <!-- Context.getExternalCacheDir(). -->
</paths>


My uri java code :



File dir = new File(Environment.getExternalStorageDirectory().getPath() + "/food/msg/");
if (!dir.mkdirs()) {
dir.mkdir();
}
Uri uri;
String url = "tmp_" + String.valueOf(System.currentTimeMillis()) + ".jpg";

filename = url;
if(Build.VERSION.SDK_INT >= Build.VERSION_CODES.N) { // API 24 +..
String strpa = getApplicationContext().getPackageName();
uri = FileProvider.getUriForFile(getApplicationContext(),
getApplicationContext().getPackageName() + ".fileprovider",
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
} else {
uri = Uri.fromFile(
new File(Environment.getExternalStorageDirectory().getPath()
+ "/food/msg/" + url));
}


My manifest :



<provider
android:name="android.support.v4.content.FileProvider"
android:authorities="com.alibaba.food.fileprovider"
android:exported="false"
android:grantUriPermissions="true">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/provider_paths" />
</provider>






android uri






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 22 '18 at 9:42







Richard

















asked Nov 22 '18 at 9:22









RichardRichard

1159




1159













  • Are you trying to get the image file from a location?

    – Salman Khan
    Nov 22 '18 at 9:25











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08



















  • Are you trying to get the image file from a location?

    – Salman Khan
    Nov 22 '18 at 9:25











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08

















Are you trying to get the image file from a location?

– Salman Khan
Nov 22 '18 at 9:25





Are you trying to get the image file from a location?

– Salman Khan
Nov 22 '18 at 9:25













Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

– Richard
Nov 22 '18 at 12:08





Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

– Richard
Nov 22 '18 at 12:08












1 Answer
1






active

oldest

votes


















0














add to manifest



   <provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.com.vansuita.pickimage.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/picker_provider_paths" />
</provider>


change the authorities name






share|improve this answer
























  • Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

    – Richard
    Nov 22 '18 at 9:40











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53427560%2fandroid-fileprovider-issue-over-26%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














add to manifest



   <provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.com.vansuita.pickimage.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/picker_provider_paths" />
</provider>


change the authorities name






share|improve this answer
























  • Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

    – Richard
    Nov 22 '18 at 9:40











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08
















0














add to manifest



   <provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.com.vansuita.pickimage.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/picker_provider_paths" />
</provider>


change the authorities name






share|improve this answer
























  • Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

    – Richard
    Nov 22 '18 at 9:40











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08














0












0








0







add to manifest



   <provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.com.vansuita.pickimage.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/picker_provider_paths" />
</provider>


change the authorities name






share|improve this answer













add to manifest



   <provider
android:name="android.support.v4.content.FileProvider"
android:authorities="${applicationId}.com.vansuita.pickimage.provider"
android:exported="false"
android:grantUriPermissions="true"
tools:replace="android:authorities">
<meta-data
android:name="android.support.FILE_PROVIDER_PATHS"
android:resource="@xml/picker_provider_paths" />
</provider>


change the authorities name







share|improve this answer












share|improve this answer



share|improve this answer










answered Nov 22 '18 at 9:35









Shahriyar AghajaniShahriyar Aghajani

74112




74112













  • Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

    – Richard
    Nov 22 '18 at 9:40











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08



















  • Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

    – Richard
    Nov 22 '18 at 9:40











  • Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

    – Richard
    Nov 22 '18 at 12:08

















Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

– Richard
Nov 22 '18 at 9:40





Hello Shahriyar, Unfortunately I've already added provider into manifest. The result of building is same problem occurring.

– Richard
Nov 22 '18 at 9:40













Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

– Richard
Nov 22 '18 at 12:08





Oh my god!!! I just removed ".path()" from "Environment.getExternalStorageDirectory().getPath()". I can resolve my problem. Thank you :)

– Richard
Nov 22 '18 at 12:08




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53427560%2fandroid-fileprovider-issue-over-26%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

Npm cannot find a required file even through it is in the searched directory