Android full backup: “file.xml is not in an included path”
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android android-backup-service
add a comment |
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android android-backup-service
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 '18 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01
add a comment |
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android android-backup-service
I've created backup rules file just like in example https://developer.android.com/guide/topics/data/autobackup:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content xmlns:android="http://schemas.android.com/apk/res/android">
<include
domain="sharedpref"
path="." />
<exclude
domain="sharedpref"
path="nonceStorage.xml" />
<exclude
domain="sharedpref"
path="localStorage.xml" />
</full-backup-content>
and Android Studio say's that there are errors:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
Error message is totally uninformative and not googleable (almost all words are very short).
Can anyone explain,what does this *** want from me? How to fix this issue?
android android-backup-service
android android-backup-service
edited 2 days ago
GianhTran
1,8831721
1,8831721
asked Aug 5 '18 at 1:44
babay
3,28611932
3,28611932
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 '18 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01
add a comment |
It simply says that your excludenonceStorage.xml
is not in any<include ..
paths?
– Torxed
Nov 11 '18 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01
It simply says that your exclude
nonceStorage.xml
is not in any <include ..
paths?– Torxed
Nov 11 '18 at 20:58
It simply says that your exclude
nonceStorage.xml
is not in any <include ..
paths?– Torxed
Nov 11 '18 at 20:58
1
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01
add a comment |
2 Answers
2
active
oldest
votes
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
add a comment |
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51690808%2fandroid-full-backup-file-xml-is-not-in-an-included-path%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
2 Answers
2
active
oldest
votes
2 Answers
2
active
oldest
votes
active
oldest
votes
active
oldest
votes
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
add a comment |
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
add a comment |
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
the error message tells, that there are no such files to exclude in domain sharedpref
:
Error:(8, 15) `nonceStorage.xml` is not in an included path [FullBackupContent]
Error:(11, 15) `localStorage.xml` is not in an included path [FullBackupContent]
possibly it is domain root
- but while not including that domain, no need to exclude them.
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content
xmlns:android="http://schemas.android.com/apk/res/android">
<include domain="sharedpref" path="."/>
</full-backup-content>
use the "Device File Explorer" and go to /data/user/0/com.yourapp/shared_prefs
...
there you can see which files belong into which domain - or if they are even present there.
edited Nov 16 '18 at 13:22
answered Nov 16 '18 at 13:00
Martin Zeitler
14.5k33863
14.5k33863
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
add a comment |
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
this is the file used to store some shared preferences. It does not exist at compile time, but is created at runtime. So, compiler really doesn't now the file will be there. :(
– babay
Nov 24 '18 at 4:05
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
@babay the compiler does not know of any files on the device. what are you talking about?
– Martin Zeitler
Nov 24 '18 at 7:49
add a comment |
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
add a comment |
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
I guess this is an IDE bug because the example from doc:
<?xml version="1.0" encoding="utf-8"?>
<full-backup-content>
<include domain="sharedpref" path="."/>
<exclude domain="sharedpref" path="device.xml"/>
</full-backup-content>
shows the same error on device.xml
.
Removing the <include>
clears the error if you simply want to exclude some files because the doc says
By default, Auto Backup includes almost all app files.
answered Nov 18 '18 at 12:04
Dewey Reed
7481513
7481513
add a comment |
add a comment |
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.
Some of your past answers have not been well-received, and you're in danger of being blocked from answering.
Please pay close attention to the following guidance:
- 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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f51690808%2fandroid-full-backup-file-xml-is-not-in-an-included-path%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
It simply says that your exclude
nonceStorage.xml
is not in any<include ..
paths?– Torxed
Nov 11 '18 at 20:58
1
I want to exclude that file. And I think it's included in '.' path. This is just like example at developer.android.com/guide/topics/data/autobackup
– babay
Nov 11 '18 at 21:01