1. Menambahkan file library .jar
- Buat sebuah folder di dalam projek kita dengan nama "libs" kemudian masukkan file jar ke dalam folder tersebut .
- Setelah kita melihat file jar tersebut di folder libs android studio, klik kanan pada file jar tersebut dan pilih opsi "Add as Library", dan pilih OK.
2. HttpClient tidak terdeteksi di Android Studio
HttpClient is not supported any more in sdk 23. You have to use URLConnection or downgrade to sdk 22 (compile 'com.android.support:appcompat-v7:22.2.0')If you need sdk 23, add this to your gradle:
android {
useLibrary 'org.apache.http.legacy'
}
Referensi
3. Menambahkan Google Play Service
Open the
build.gradle file inside your application module directoryAdd a new build rule under
dependencies for the latest version of
play-services. For example:
apply plugin: 'com.android.application' ... dependencies { compile 'com.google.android.gms:play-services:8.4.0' }Be sure you update this version number each time Google Play services is updated.
| Google Play services API | Description in build. |
|---|---|
| Google+ | com. |
| Google Account Login | com. |
| Google Actions, Base Client Library | com. |
| Google Address API | com. |
| Google App Indexing | com. |
| Google App Invites | com. |
| Google Analytics | com. |
| Google Cast | com. |
| Google Cloud Messaging | com. |
| Google Drive | com. |
| Google Fit | com. |
| Google Location, Activity Recognition, and Places | com. |
| Google Maps | com. |
| Google Mobile Ads | com. |
| Mobile Vision | com. |
| Google Nearby | com. |
| Google Panorama Viewer | com. |
| Google Play Game services | com. |
| SafetyNet | com. |
| Google Wallet | com. |
| Android Wear | com. |
4. ActionBar tidak terdeteksi
accepted
|
If you are using android.app.ActionBar. So you have to do the following
The Action Bar follows the material design guidelines and uses a Toolbar. As you can read here: |
5. Menambahkan folder Asset
New -> Folder -> Assets Folder.
6. Problem System.loadLibrary danjava.lang.UnsatisfiedLinkError
Problem ini muncul ketika ingin memanggil library yang berekstensi .so
> Buatlah folder /lib di dalam /main
> Tambahkan kode berikut di build.gradle
sourceSets.main {
jniLibs.srcDir 'src/main/lib'}
> Hasil akhirnya seperti berikut
Referensi


Komentar ini telah dihapus oleh pengarang.
BalasHapusmaaf sebelumnya mas.. gmna ya cara nya membuat file berformat .so ya?
BalasHapusBarangkali ini bisa membantu
Hapushttp://stackoverflow.com/questions/32443496/generate-so-file-in-android-studio
emm masalahnya sudah ada file .so nya mas tapi kayaknya blm kebaca file .so nya... mngkin ada waktu free bisa bantuin cara mengatasi file .so nya mas,,, :) soalnya saya masih pemula android mas..
Hapushttps://github.com/592713711/Android-VideoChat
Posting Komentar