Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Error:No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

I am REALLY new to Android Studio and I was moving to fast and removed something from my code...now I keep getting an error message & my gradle sync fails.

I see the following in the log:

2016-06-01 05:39:55,358 [32778590]   WARN - radle.project.ProjectSetUpTask -  
2016-06-01 05:39:55,358 [32778590]   INFO - radle.project.ProjectSetUpTask - No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

Consult IDE log for more details (Help | Show Log) 
2016-06-01 05:39:55,360 [32778592]   INFO - ls.idea.gradle.GradleSyncState - Sync with Gradle for project 'Jumping-Jinn' failed: No toolchains found in the NDK toolchains folder for ABI with prefix: arm-linux-androideabi

Consult IDE log for more details (Help | Show Log) 
2016-06-01 05:39:56,676 [32779908]   INFO -       #com.jetbrains.cidr.lang - Clearing symbols finished in 0 s. 
2016-06-01 05:39:56,677 [32779909]   INFO -       #com.jetbrains.cidr.lang - Loading symbols finished in 0 s. 
2016-06-01 05:39:56,678 [32779910]   INFO -       #com.jetbrains.cidr.lang - Building symbols finished in 0 s. 
2016-06-01 05:39:56,678 [32779910]   INFO -       #com.jetbrains.cidr.lang - Saving symbols finished in 0 s. 

My code basically says nothing: NOTE: AppCompatActivity is in red currently

import android.media.Image;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.widget.ImageButton;
import android.widget.Toast;

public class HomeScreen extends AppCompatActivity {

    ImageButton musicEnable_ImageButton;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home_screen);

        musicEnable_ImageButton = (ImageButton) findViewById(R.id.soundEnable_button);
        musicEnable_ImageButton.setOnClickListener(new View.OnClickListener(){
            @Override
            public void onClick(View v){
                musicEnable_ImageButton.setBackgroundResource(R.drawable.musicon1);
            }
        });
    }
like image 720
1QuickQuestion Avatar asked Jun 01 '16 09:06

1QuickQuestion


3 Answers

The solution for me was the following:

  1. Open project in Android Studio
  2. Wait for sync to finish
  3. Click on File -> Project structure -> SDK Location
  4. At Android NDK Location, if you don't have any NDK, install one
  5. Select an existing NDK location.

That should fix it.

like image 191
f4z3k4s Avatar answered Oct 21 '22 22:10

f4z3k4s


Just add this line to your local.properties in android folder: ndk.dir=/Users/apatrck03/Library/Android/sdk/ndk/23.0.7123448

whatever your ndk version is (-:

like image 4
apatrck01 Avatar answered Oct 21 '22 23:10

apatrck01


Installing an older NDK version (20.. or lower) from android studio seems to solve the problem. Higher versions don't solve the issue.

like image 1
Eric Lima Avatar answered Oct 21 '22 23:10

Eric Lima