You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/03/26 02:08:47 UTC

[GitHub] [cordova-plugin-camera] vaibhav915 commented on issue #391: Android: camera.getPicture() returns null while selecting image from Download folder or Google Drive

vaibhav915 commented on issue #391: Android: camera.getPicture() returns null while selecting image from Download folder or Google Drive
URL: https://github.com/apache/cordova-plugin-camera/issues/391#issuecomment-604186450
 
 
   > Hi.
   > To solve this issue replace this file -> FileHelper.java (inside ZIP) and create another support file in the same folder (FileUtils.java - inside ZIP).
   > 
   > See you
   > 
   > [Archivio.zip](https://github.com/apache/cordova-plugin-camera/files/4190877/Archivio.zip)
   
   @giuseeFG 
   I tried your suggestion but while building the project again, it throws lots of error, below Logs: 
   
   
   BUILD FAILED in 4s
   cmd: Command failed with exit code 1 Error output:
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:40: error: package extras does not exist
   import static extras.FileUtils.generateFileName;
                       ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:40: error: static import only from classes and interfaces
   import static extras.FileUtils.generateFileName;
   ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:41: error: package extras does not exist
   import static extras.FileUtils.getDocumentCacheDir;
                       ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:41: error: static import only from classes and interfaces
   import static extras.FileUtils.getDocumentCacheDir;
   ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:42: error: package extras does not exist
   import static extras.FileUtils.getFileName;
                       ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:42: error: static import only from classes and interfaces
   import static extras.FileUtils.getFileName;
   ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:43: error: package extras does not exist
   import static extras.FileUtils.saveFileFromUri;
                       ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:43: error: static import only from classes and interfaces
   import static extras.FileUtils.saveFileFromUri;
   ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileUtils.java:51: error: package okhttp3 does not exist
   import okhttp3.ResponseBody;
                 ^
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileUtils.java:594: error: cannot find symbol
       public static File writeResponseBodyToDisk(ResponseBody body, String path) {
                                                  ^
     symbol:   class ResponseBody
     location: class FileUtils
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:128: error: cannot find symbol
                   String fileName = getFileName(context, uri);
                                     ^
     symbol:   method getFileName(Context,Uri)
     location: class FileHelper
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:129: error: cannot find symbol
                   File cacheDir = getDocumentCacheDir(context);
                                   ^
     symbol:   method getDocumentCacheDir(Context)
     location: class FileHelper
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:130: error: cannot find symbol
                   File file = generateFileName(fileName, cacheDir);
                               ^
     symbol:   method generateFileName(String,File)
     location: class FileHelper
   C:\Users\xxxxxxx\platforms\android\app\src\main\java\org\apache\cordova\camera\FileHelper.java:134: error: cannot find symbol
                       saveFileFromUri(context, uri, destinationPath);
                       ^
     symbol:   method saveFileFromUri(Context,Uri,String)
     location: class FileHelper

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org