-
Notifications
You must be signed in to change notification settings - Fork 141
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
android not working #205
Comments
all function getPackageClassName(folder) {
const files = _glob().default.sync('**/+(*.java|*.kt)', {
cwd: folder
});
const packages = files.map(filePath => _fs().default.readFileSync(_path().default.join(folder, filePath), 'utf8')).map(matchClassName).filter(match => match); // @ts-ignore
return packages.length ? packages[0][1] : null;
}
function matchClassName(file) {
return file.match(/class\s+(\w+[^(\s]*)[\s\w():]*(\s+implements\s+|:)[\s\w():,]*[^{]*ReactPackage/);
} |
Can't identify 'public class ReactNativeBlobUtilPackage extends TurboReactPackage {'
|
The |
woking in RN 0.65.3, function matchClassName(file) {
const nativeModuleMatch = file.match(/class\s+(\w+[^(\s]*)[\s\w():]*(\s+implements\s+|:)[\s\w():,]*[^{]*ReactPackage/); // We first check for implementation of ReactPackage to find native
// modules and then for subclasses of TurboReactPackage to find turbo modules.
if (nativeModuleMatch) {
return nativeModuleMatch;
} else {
return file.match(/class\s+(\w+[^(\s]*)[\s\w():]*(\s+extends\s+|:)[\s\w():,]*[^{]*TurboReactPackage/);
}
} |
fix : const path = require('path');
module.exports = {
dependencies: {
'react-native-blob-util': {
platforms: {
android: {
sourceDir: path.resolve(
__dirname,
'node_modules/react-native-blob-util/android',
),
folder: path.resolve(
__dirname,
'node_modules/react-native-blob-util',
),
packageImportPath:
'import com.ReactNativeBlobUtil.ReactNativeBlobUtilPackage;',
packageInstance: 'new ReactNativeBlobUtilPackage()',
buildTypes: [],
},
},
},
},
} |
So it's working with 0.65 but not with 0.64? |
I am getting this error from play console: Exception java.lang.SecurityException: Unsupported path /storage/emulated/0/Download How to solve this problem |
thank you master, it worked for me |
Hi ! Thank you for reporting an issue, but we would like to remind you, we have a trouble shooting page in our wiki.
You may want to take a look on that page or find issues tagged "trouble shooting" :p
package.json
output
android return
null
The text was updated successfully, but these errors were encountered: