Pramod Gajbhiye
Member
I want to get the path of the file in the storage associated with my app as soon as the user clicks on the file and it opens with my app. But the path returned to the app is in Uri format. I want it in absolute file path for further operations. I am using the code given by Mr. Erel at the link given Here.
But when I run the project I get the following error -
First I compiled with Android SDK then I got the issue. I thought the issue might be related to the Android SDK hence I downloaded all the recommended items in the SDK Manager and compiled with AndroidX SDK but the issue remains the same.
I commented out different import lines then I found that the error is raised on following imports in the code -
Please suggest solution.
But when I run the project I get the following error -
Error on android.support.annotation.NonNull:
B4A Version: 10.0
Java Version: 11
Parsing code. (0.16s)
Building folders structure. (0.08s)
Running custom action. (0.24s)
Compiling code. (0.38s)
Compiling layouts code. (0.01s)
Organizing libraries. (0.00s)
(AndroidX SDK)
Generating R file. (0.03s)
Compiling debugger engine code. (0.07s)
Compiling generated Java code. Error
src\com\proximate\test\main.java:16: error: package android.support.annotation does not exist
import android.support.annotation.NonNull;
^
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
javac 11.0.1
First I compiled with Android SDK then I got the issue. I thought the issue might be related to the Android SDK hence I downloaded all the recommended items in the SDK Manager and compiled with AndroidX SDK but the issue remains the same.
I commented out different import lines then I found that the error is raised on following imports in the code -
B4X:
import android.annotation.SuppressLint;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.content.ContextCompat;
Please suggest solution.