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);
}
});
}
The solution for me was the following:
That should fix it.
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 (-:
Installing an older NDK version (20.. or lower) from android studio seems to solve the problem. Higher versions don't solve the issue.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With