require __DIR__ . 'AudioStream.php';
Предупреждение : require(/sites/criptopays.net/translateAudioStream.php): не удалось открыть поток: нет такого файла или каталога в /sites/criptpays.net/translate/server.php в строке 4.
Неустранимая ошибка : неперехваченная ошибка: не удалось открыть требуется '/sites/criptopays.net/translateAudioStream.php' (include_path='.:/usr/share/pear:/usr/share/php') в /sites/criptopays.net/translate/server.php:4 Stack trace: #0 {main} брошен в /sites/criptopays.net/translate/server.php в строке 4
clearFocus();
private static String PARSE_URL = "https://api.edamam.com/api/food-database/v2/parser?app_id=e5bc806d";
private static String END_URL = "&app_key=5f7521ffeefe491b936cea6271e13d3d&ingr=";
private static String SEARCH_TEXT = null;
btn.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
FTPClient ftpClient = new FTPClient();
try {
ftpClient.connect("*********");
if (ftpClient.login("*******", "********")) {
ftpClient.enterLocalPassiveMode();
ftpClient.setFileType(FTP.BINARY_FILE_TYPE);
String sourceFilePath = "file:///android_asset/example.png";
File sourceFile = new File(new URI(sourceFilePath));
InputStream inputStream = new FileInputStream(sourceFile);
boolean result = ftpClient.storeFile("/example.png", inputStream);
inputStream.close();
if (result) {
Toast.makeText(getApplicationContext(), "Файл успешно загружен на сервер", Toast.LENGTH_SHORT).show();
} else {
Toast.makeText(getApplicationContext(), "Не удалось загрузить файл на сервер", Toast.LENGTH_SHORT).show();
}
ftpClient.logout();
ftpClient.disconnect();
}
}
catch (Exception e) {
Toast.makeText(getApplicationContext(), "Неудача", Toast.LENGTH_SHORT).show();
e.printStackTrace();
}
}
});
Certificate for <startappdev.bintray.com> doesn't match any of the subject alternative names: [*.jfrog.io, *.int.jfrog.io, jfrog.io, *.pe.jfrog.io]
maven { url 'https://startappdev.bintray.com/maven' }
получаю ошибкуExecution failed for task ':app:mergeDebugNativeLibs'.
> Could not resolve all files for configuration ':app:debugRuntimeClasspath'.
> Could not find com.example.library:library:1.0.0.
Required by:
project :app
id
, name
, img
, url
? Или оно идет по порядку , `category_name`, `category_img`, `category_url`
равно , name, img, url
?