Home Is it necessary to first connect raspberry pi 3 with adb then develop the android things project
Reply: 1

Is it necessary to first connect raspberry pi 3 with adb then develop the android things project

Farooq Ahmad
1#
Farooq Ahmad Published in 2017-09-14 05:37:58Z

I am new to android things. Recently I tried to build an android things app on android studio 2.3.3 with 25 SDK. But when I wrote the android things support library into the dependency of app module app.gradle file. And then pressed the 'Synce Now' button, it gives me an error...

"Install repository then Sync"

Plz Someone help me. I loved to develop any android things app...

Ashish Gupta
2#
Ashish Gupta Reply to 2017-09-14 06:03:29Z

You don't need to connect Raspberry Pi to develop a Android Things project. There are three points which you have to keep in mind while developing for Android Things:

  • Update your SDK tools to version 25.0.3 or higher.
  • Update your SDK with Android 8.0 (API 26) or higher.
  • In order to access new APIs for Things, you must create a project or modify an existing project that targets Android 8.0 (API level 26) or higher. Add the library.

In your case, you need to install the latest bulid tools, and repositories to develop an Android Things Project. Your build.gradle should look like this:

apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.3"

defaultConfig {
    applicationId "com.android.androidthings.id"
    minSdkVersion 21
    targetSdkVersion 26
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        testCompile 'junit:junit:4.12'
        compile 'com.android.support:appcompat-v7:25.3.1'
        provided 'com.google.android.things:androidthings:0.3-devpreview'
}
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.306203 second(s) , Gzip On .

© 2016 Powered by cudou.com design MATCHINFO