Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 0 additions & 22 deletions MySound/.idea/compiler.xml

This file was deleted.

3 changes: 0 additions & 3 deletions MySound/.idea/copyright/profiles_settings.xml

This file was deleted.

18 changes: 0 additions & 18 deletions MySound/.idea/gradle.xml

This file was deleted.

46 changes: 0 additions & 46 deletions MySound/.idea/misc.xml

This file was deleted.

9 changes: 0 additions & 9 deletions MySound/.idea/modules.xml

This file was deleted.

12 changes: 0 additions & 12 deletions MySound/.idea/runConfigurations.xml

This file was deleted.

6 changes: 4 additions & 2 deletions MySound/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,12 @@ android {
externalNativeBuild {
cmake {
cppFlags "-std=c++11 -frtti -fexceptions"
abiFilters "armeabi"
abiFilters "armeabi-v7a"
}
}

ndk {
abiFilters "armeabi-v7a"
}
}
buildTypes {
release {
Expand Down
Binary file added MySound/app/libs/armeabi-v7a/libfmod.so
Binary file not shown.
Binary file added MySound/app/libs/armeabi-v7a/libfmodL.so
Binary file not shown.
6 changes: 6 additions & 0 deletions MySound/app/src/main/res/layout/content_main.xml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/btn_normal"
Expand All @@ -41,6 +42,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/btn_luoli"
Expand All @@ -57,6 +59,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/btn_dashu"
Expand All @@ -77,6 +80,7 @@

<LinearLayout
android:layout_width="wrap_content"
android:layout_weight="1"
android:layout_height="wrap_content"
android:orientation="vertical">
<ImageView
Expand All @@ -92,6 +96,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/btn_gaoguai"
Expand All @@ -106,6 +111,7 @@
<LinearLayout
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_weight="1"
android:orientation="vertical">
<ImageView
android:id="@+id/btn_kongling"
Expand Down
4 changes: 3 additions & 1 deletion MySound/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,10 @@
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:2.3.3'
classpath 'com.android.tools.build:gradle:3.6.1'

// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
Expand All @@ -15,6 +16,7 @@ buildscript {
allprojects {
repositories {
jcenter()
google()
}
}

Expand Down
2 changes: 1 addition & 1 deletion MySound/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-3.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-5.6.4-all.zip
11 changes: 7 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
Fork修改版 新增v7平台下可用性 升级gradle配置 5.6.4


> 版权声明:转载必须注明本文转自张鹏辉的博客: http://blog.csdn.net/qingtiangg
<br>
>大家好,距离上一篇博客半年过去了,关于上一篇博客很多人加我QQ留言问了几个问题,最近不忙决定解决一下,并写几个文档总结下这半年的经验,这篇文档主要是记录下移植的过程。
> <br>
> 大家好,距离上一篇博客半年过去了,关于上一篇博客很多人加我QQ留言问了几个问题,最近不忙决定解决一下,并写几个文档总结下这半年的经验,这篇文档主要是记录下移植的过程。


# 统计
Expand Down Expand Up @@ -28,7 +31,7 @@ Android Studio NDK目前有两种玩法:

##1.创建新项目(Create New Project)
勾选上 <font color=gray size=2>Include C++ Support</font>

![这里写图片描述](http://img.blog.csdn.net/20170803150811282?watermark/2/text/aHR0cDovL2Jsb2cuY3Nkbi5uZXQvUWluZ1RpYW5HRw==/font/5a6L5L2T/fontsize/400/fill/I0JBQkFCMA==/dissolve/70/gravity/SouthEast)

接下来和普通创建一样一路 ---->Next到下图这个页面
Expand Down Expand Up @@ -133,7 +136,7 @@ target_link_libraries( sound fmod fmodL
>中文翻译的简易的 CMake手册

>https://www.zybuluo.com/khan-lau/note/254724


最后一步配置build.gradle直接上图了:

Expand Down