Error Run Tensorflow Example Android - android

I,am run Tensorflow Example Android and i get error :
Error:Execution failed for task ':buildNativeBazel'.
A problem occurred starting process 'command '/usr/local/bin/bazel''
how do i solve this problem
Thanks before ....

you should install NDK and rebuild your project .
for install NDk go to this Page and Download that https://developer.android.com/ndk/index.html
Later than install NDK go to the file -> Project Structure -> SDK Location -> Android NDK Location: -> enter NDK Location

Related

Error : react-native-vector-icons:compileDebugJavaWithJavac'. React-Native

I'm new into react-native and I've cloned one repo and setup project in my system now i'm tryingto run in android.
react-native run-android
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':react-native-vector-icons:compileDebugJavaWithJavac'.
Could not find tools.jar. Please check that C:\Program Files (x86)\Java\jre1.8.0_111 contains a valid JDK installation.
I've also tried installing vector icons using below link
enter link description here
this may help you :
you should added JDK path org.gradle.java.home=C:\ProgramFiles\Java\jdk1.8.0_161 to gradle.properties file and rebuild your project.

Gradle error for TMessagesProj'. executing external native build for ndkBuild

i was downloaded the official telegram source from this link :
https://github.com/DrKLO/Telegram
when i try to run this app , the gradle sync fail & gives me the following error :
Error:Gradle: A problem occurred configuring project ':TMessagesProj'.
executing external native build for ndkBuild C:\Users\Moonwalker\Desktop\Telegram-master\TMessagesProj\jni\Android.mk
alson downloaded the ndk bundle ...no success
my sdk version : 23
andriod studio 2.3.1
win 10 .
anyone can help ?
You must add recursive to git clone. Something like this:
git clone --recursive git#github.com:DrKLO/Telegram.git
Or this:
git clone --recursive http://github.com/DrKLO/Telegram.git

Unable to run andorid app in android studio

Starting the android studio gives this error
Error:Execution failed for task ':app:prepareComAndroidSupportAppcompatV72220Library'.
Could not expand ZIP '/home/abskpr/Android/Sdk/extras/android/m2repository/com/android/support/appcompat-v7/22.2.0/appcompat-v7-22.2.0.aar'.
Please help!!!
It's a build error; Go to File -> Settings -> Build -> Gradle and select Use default Gradle wrapper (Recommended)

NDK is not configured issue in android studio

My Application is built successfully on Eclipse but fails to Build on android studio.
It returns the error code Ndk is not Configured.
Then I've added ndk path to build.gradle then its showing the following error:
Information:Gradle tasks [:nano:assembleDebug]
WARNING [Project: :nano] Current NDK support is deprecated. Alternative will be provided in the future.
:nano:preBuild UP-TO-DATE
:nano:preDebugBuild UP-TO-DATE
:nano:compileDebugNdk
make.exe: *** No rule to make target `C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni', needed by `C:\Users\admin\nano\nano\build\intermediates\ndk\debug\obj/local/arm64-v8a/objs/la_audio_processing_android/C_\Users\admin\nano\nano\src\main\jni\LA_PostProcessing.o'. Stop.
Error:Execution failed for task ':nano:compileDebugNdk'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\admin\AppData\Local\Android\ndk\ndk-build.cmd'' finished with non-zero exit value 2
Information:BUILD FAILED
Information:Total time: 3.449 secs
Information:1 error
Information:0 warnings
Information:See complete output in console
This is the problem faced by Android studio users in Windows environment.
First for NDK not Configured problem
Go to local.properties file and give ndk path...
for ex :
#Wed Mar 18 14:10:33 IST 2015
sdk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\sdk1
ndk.dir=C\:\\Users\\admin\\AppData\\Local\\Android\\ndk
Then for the Next Problem or Error...
Goto JNI Folder and create an empty c file by any name...
Then your problem will be solved...
Some Quick links about this are
http://ph0b.com/android-studio-gradle-and-ndk-integration/
And
https://code.google.com/p/android/issues/detail?id=66937
Go to option File->Project Structure
Select SDK Location->Android NDK Location and choose NDK listed in dropdown
For whatever reason, setting ndk.dir on the properties file is not working for me. However, setting/exporting the variable ANDROID_NDK_HOME prior to launching android studio did the trick.
Bash syntax (paths below are specific to my installation)
export ANDROID_HOME=/opt/android-sdk-linux
export ANDROID_NDK_HOME=$ANDROID_HOME/ndk-bundle
Environment
Ubuntu Linux x64/GNU bash, version 4.4/Android Studio 2.2.3
Goto Files -> Project Structure -> SDK Location
Android NDK Location is at the bottom right of the window.
I use Android Studio 1.4.1.
Below is my local.properties
ndk.dir=C:\Users\BestQ\AppData\Local\Android\Sdk\ndk-bundle
sdk.dir=C:\Users\BestQ\AppData\Local\Android\Sdk
It work well.
In build.gradle use
android {
ndkVersion '21.1.6352462'
}
and use android.useDeprecatedNdk=true in gradle.properties
In some cases, you need to point exact version of ndk version on the local.properties file like that:
ndk.dir=/Users/ali6p/Library/Android/sdk/ndk/21.3.6528147
If you need to install a specific version of ndk bundle, open Android Studio preferences and install the version (Preferences > Appearance & Behaviour > System Settings > Android SDK > SDK Tools: Show Package Details > NDK (Side by side): check the version:
My issue was caused by the target file not being found (in my case, a git sub-module needed to be checked out), so ensure all the referenced files exist on the specified path.
Maybe the NDK is not installed.
If it's the case, go to SDK Manager (top-right icon).
Go to Android SDK > SDK Tools
Check NDK (Side by side) and install it.

Maven Android SDK Deployer run the command "mvn install" error: Properties file not found. The file path seems not correct

[ERROR] Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17: Properties file not found: D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.codehaus.mojo:properties-maven-plugin:1.0-alpha-2:read-project-properties (default) on project android-17: Properties file not found: D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties
I'm using maven on windows.
ANDROID_HOME has been set. The value is D:\adt-bundle-windows-x86_64\sdk
I could find source.properties under D:\adt-bundle-windows-x86_64\sdk\platforms\android-17
D:\maven-android-sdk-deployer-master\platforms\android-17\${env.ANDROID_HOME}\platforms\android-17\source.properties should be D:\maven-android-sdk-deployer-master\platforms\android-17\D:\adt-bundle-windows-x86_64\sdk\platforms\android-17\platforms\android-17\source.properties. It's not a valid path. I think that's what cause the failure.
Please tell me how to fix the issue. Thanks!
I had this same issue. It can be resolved by opening the Android SDK Manager, removing the item which is producing the error (in your case the Android 4.2.2 API 17 SDK) and then once its removed simply install it again before you run the deployer again.

Categories

Resources